summaryrefslogtreecommitdiff
path: root/network_client.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-12-26 17:36:18 +0000
committerDarkvater <Darkvater@openttd.org>2006-12-26 17:36:18 +0000
commit04628a1979f0ab8df4e78c0a57ca0d73381846be (patch)
tree8dae47833ded5c522ac7a89f69f10fc0c2530e90 /network_client.c
parent08d0319f7c50fba3ea11071d7a781478438cbbab (diff)
downloadopenttd-04628a1979f0ab8df4e78c0a57ca0d73381846be.tar.xz
(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to
use in debug.h. grfmsg() is now used as a specific debug-function for grf.
Diffstat (limited to 'network_client.c')
-rw-r--r--network_client.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/network_client.c b/network_client.c
index 22d23720e..1dee26e2d 100644
--- a/network_client.c
+++ b/network_client.c
@@ -437,8 +437,8 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_WAIT)
InvalidateWindow(WC_NETWORK_STATUS_WINDOW, 0);
// We are put on hold for receiving the map.. we need GUI for this ;)
- DEBUG(net, 1)("[NET] The server is currently busy sending the map to someone else.. please hold..." );
- DEBUG(net, 1)("[NET] There are %d clients in front of you", _network_join_waiting);
+ DEBUG(net, 1, "The server is currently busy sending the map to someone else, please wait..." );
+ DEBUG(net, 1, "There are %d clients in front of you", _network_join_waiting);
return NETWORK_RECV_STATUS_OKAY;
}
@@ -544,13 +544,13 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_FRAME)
#endif
}
#endif
- DEBUG(net, 7)("[NET] Received FRAME %d",_frame_counter_server);
+ DEBUG(net, 5, "Received FRAME %d", _frame_counter_server);
// Let the server know that we received this frame correctly
// We do this only once per day, to save some bandwidth ;)
if (!_network_first_time && last_ack_frame < _frame_counter) {
last_ack_frame = _frame_counter + DAY_TICKS;
- DEBUG(net,6)("[NET] Sent ACK at %d", _frame_counter);
+ DEBUG(net, 4, "Sent ACK at %d", _frame_counter);
SEND_COMMAND(PACKET_CLIENT_ACK)();
}
@@ -680,7 +680,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_QUIT)
// The client is gone, give the NetworkClientInfo free
ci->client_index = NETWORK_EMPTY_INDEX;
} else {
- DEBUG(net, 0)("[NET] Error - unknown client (%d) is leaving the game", index);
+ DEBUG(net, 0, "Unknown client (%d) is leaving the game", index);
}
InvalidateWindow(WC_CLIENT_LIST, 0);
@@ -807,7 +807,7 @@ NetworkRecvStatus NetworkClient_ReadPackets(NetworkClientState *cs)
res = _network_client_packet[type](p);
} else {
res = NETWORK_RECV_STATUS_MALFORMED_PACKET;
- DEBUG(net, 0)("[NET][client] Received invalid packet type %d", type);
+ DEBUG(net, 0, "[client] received invalid packet type %d", type);
}
free(p);