File diff r715:f920f6262d41 → r716:ae3edbaa50e7
network_gamelist.c
Show inline comments
 
@@ -56,25 +56,25 @@ NetworkGameList *NetworkGameListAddItem(
 
	memset(item, 0, sizeof(*item));
 

	
 
	item->next = NULL;
 
	item->ip = ip;
 
	item->port = port;
 
	_network_game_count++;
 

	
 
	UpdateNetworkGameWindow(false);
 

	
 
	return item;
 
}
 

	
 
void NetworkGameListAddQueriedItem(NetworkGameInfo *info, bool server_online)
 
void NetworkGameListAddQueriedItem(const NetworkGameInfo *info, bool server_online)
 
{
 
	// We queried a server and now we are going to add it to the list
 
	NetworkGameList *item;
 

	
 
	item = NetworkGameListAddItem(_network_last_host_ip, _network_last_port);
 
	item->online = server_online;
 
	memcpy(&item->info, info, sizeof(NetworkGameInfo));
 
	ttd_strlcpy(item->info.hostname, _network_last_host, sizeof(item->info.hostname));
 

	
 
	UpdateNetworkGameWindow(false);
 
}