mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r15932) -Codechange: show ip:port as (fallback) servername instead of only the ip. This way you can clearly see there aren't any duplicates.
This commit is contained in:
parent
89d0eca6b7
commit
5386fe1a1c
@ -472,7 +472,6 @@ static void NetworkAcceptClients()
|
||||
{
|
||||
struct sockaddr_in sin;
|
||||
NetworkClientSocket *cs;
|
||||
uint i;
|
||||
bool banned;
|
||||
|
||||
/* Should never ever happen.. is it possible?? */
|
||||
|
@ -429,7 +429,7 @@ void NetworkUDPQueryServerThread(void *pntr)
|
||||
/* Clear item in gamelist */
|
||||
NetworkGameList *item = CallocT<NetworkGameList>(1);
|
||||
item->address = *info;
|
||||
strecpy(item->info.server_name, info->GetHostname(), lastof(item->info.server_name));
|
||||
strecpy(item->info.server_name, info->GetAddressAsString(), lastof(item->info.server_name));
|
||||
strecpy(item->info.hostname, info->GetHostname(), lastof(item->info.hostname));
|
||||
item->manually = info->manually;
|
||||
NetworkGameListAddItemDelayed(item);
|
||||
|
Loading…
Reference in New Issue
Block a user