diff options
author | rubidium <rubidium@openttd.org> | 2009-04-03 12:54:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-03 12:54:38 +0000 |
commit | 5386fe1a1c0a9f04ba40e03d162c1641e0ebd1af (patch) | |
tree | 3f574604bcdc6a399f32a6079551b199a4819c5a /src | |
parent | 89d0eca6b74e3e2986425991674d3ffc67e9b974 (diff) | |
download | openttd-5386fe1a1c0a9f04ba40e03d162c1641e0ebd1af.tar.xz |
(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.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network.cpp | 1 | ||||
-rw-r--r-- | src/network/network_udp.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp index 06bd53ee9..d2f918748 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -472,7 +472,6 @@ static void NetworkAcceptClients() { struct sockaddr_in sin; NetworkClientSocket *cs; - uint i; bool banned; /* Should never ever happen.. is it possible?? */ diff --git a/src/network/network_udp.cpp b/src/network/network_udp.cpp index 886639fe4..77de8fcd2 100644 --- a/src/network/network_udp.cpp +++ b/src/network/network_udp.cpp @@ -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); |