summaryrefslogtreecommitdiff
path: root/src/network/network_server.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-08 21:14:49 +0000
committerrubidium <rubidium@openttd.org>2010-04-08 21:14:49 +0000
commitd8baa1342c4ddce823724b758c5b3e4547e84e90 (patch)
treea8877f3db63d8d7c5d9a7dbee7f4a0943e8ab785 /src/network/network_server.cpp
parent9ad86b776fcb04242fda1203ca126bbb68ff2829 (diff)
downloadopenttd-d8baa1342c4ddce823724b758c5b3e4547e84e90.tar.xz
(svn r19589) -Change: add some more useful information to the desync log and unify the formatting
Diffstat (limited to 'src/network/network_server.cpp')
-rw-r--r--src/network/network_server.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index 94c2911f2..127ac1b90 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -716,6 +716,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_JOIN)
strecpy(ci->client_name, name, lastof(ci->client_name));
ci->client_playas = playas;
ci->client_lang = client_lang;
+ DEBUG(desync, 1, "client: %08x; %02x; %02x; %04x", _date, _date_fract, (int)ci->client_playas, ci->index);
/* Make sure companies to which people try to join are not autocleaned */
if (Company::IsValidID(playas)) _network_company_states[playas].months_empty = 0;
@@ -1396,6 +1397,8 @@ void NetworkUpdateClientInfo(ClientID client_id)
if (ci == NULL) return;
+ DEBUG(desync, 1, "client: %08x; %02x; %02x; %04x", _date, _date_fract, (int)ci->client_playas, client_id);
+
FOR_ALL_CLIENT_SOCKETS(cs) {
SEND_COMMAND(PACKET_SERVER_CLIENT_INFO)(cs, ci);
}