diff options
author | smatz <smatz@openttd.org> | 2012-02-12 21:17:32 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2012-02-12 21:17:32 +0000 |
commit | b5525fd33dc965728ffc0e22efc0b1ba806ef807 (patch) | |
tree | c0d8203cd6c55766b17bbaeee2c83fc3ab2754a2 /src/network | |
parent | f4de9b8a371fa1817aa4c0a47d224eb3b9779b0e (diff) | |
download | openttd-b5525fd33dc965728ffc0e22efc0b1ba806ef807.tar.xz |
(svn r23941) -Add: support for clang
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_server.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index 42d5ed9d5..9e0c212ff 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -2100,11 +2100,18 @@ 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 ? (ci->client_id == CLIENT_ID_SERVER ? "server" : NetworkClientSocket::GetByClientID(ci->client_id)->GetClientIP()) : ""); + if (_network_server) { + 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), + ci->client_id == CLIENT_ID_SERVER ? "server" : NetworkClientSocket::GetByClientID(ci->client_id)->GetClientIP()); + } else { + IConsolePrintF(CC_INFO, "Client #%1d name: '%s' company: %1d", + ci->client_id, + ci->client_name, + ci->client_playas + (Company::IsValidID(ci->client_playas) ? 1 : 0)); + } } } |