Mercurial > hg > openttd
changeset 11566:b4b8ed3247b4 draft
(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.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 03 Apr 2009 12:54:38 +0000 |
parents | cf37aec7c469 |
children | 3a705e5f9980 |
files | src/network/network.cpp src/network/network_udp.cpp |
diffstat | 2 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -472,7 +472,6 @@ { struct sockaddr_in sin; NetworkClientSocket *cs; - uint i; bool banned; /* Should never ever happen.. is it possible?? */
--- a/src/network/network_udp.cpp +++ b/src/network/network_udp.cpp @@ -429,7 +429,7 @@ /* 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);