Changeset - r17590:df7f12a818a1
[Not reviewed]
master
0 2 0
rubidium - 13 years ago 2011-04-22 15:57:05
rubidium@openttd.org
(svn r22364) -Codechange: don't show the (unknown) client address in the client list at clients
2 files changed with 15 insertions and 15 deletions:
0 comments (0 inline, 0 general)
src/network/network_client.cpp
Show inline comments
 
@@ -1237,19 +1237,4 @@ bool NetworkMaxSpectatorsReached()
 
	return NetworkSpectatorCount() >= (_network_server ? _settings_client.network.max_spectators : _network_server_max_spectators);
 
}
 

	
 
/**
 
 * Print all the clients to the console
 
 */
 
void NetworkPrintClients()
 
{
 
	NetworkClientInfo *ci;
 
	FOR_ALL_CLIENT_INFOS(ci) {
 
		IConsolePrintF(CC_INFO, "Client #%1d  name: '%s'  company: %1d  IP: %s",
 
				ci->client_id,
 
				ci->client_name,
 
				ci->client_playas + (Company::IsValidID(ci->client_playas) ? 1 : 0),
 
				GetClientIP(ci));
 
	}
 
}
 

	
 
#endif /* ENABLE_NETWORK */
src/network/network_server.cpp
Show inline comments
 
@@ -1965,4 +1965,19 @@ void ServerNetworkGameSocketHandler::Get
 
	}
 
}
 

	
 
/**
 
 * Print all the clients to the console
 
 */
 
void NetworkPrintClients()
 
{
 
	NetworkClientInfo *ci;
 
	FOR_ALL_CLIENT_INFOS(ci) {
 
		IConsolePrintF(CC_INFO, _network_server ? "Client #%1d  name: '%s'  company: %1d  IP: %s" : "Client #%1d  name: '%s'  company: %1d",
 
				ci->client_id,
 
				ci->client_name,
 
				ci->client_playas + (Company::IsValidID(ci->client_playas) ? 1 : 0),
 
				_network_server ? GetClientIP(NetworkClientInfo::GetByClientID(ci->client_id)) : "");
 
	}
 
}
 

	
 
#endif /* ENABLE_NETWORK */
0 comments (0 inline, 0 general)