From 812103cea68f1da2004dd518c5ad3b448a0e1729 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 14 Feb 2005 00:53:22 +0000 Subject: Simplified logging for the sake of simplicity. --- src/net/protocol.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/net/protocol.cpp') diff --git a/src/net/protocol.cpp b/src/net/protocol.cpp index bca630b1..40110144 100644 --- a/src/net/protocol.cpp +++ b/src/net/protocol.cpp @@ -152,10 +152,11 @@ void set_coordinates(char *data, unsigned short x, unsigned short y, data[2] |= direction; } -void map_start() { +void map_start() +{ // Connect to map server if (open_session(iptostring(map_address), map_port) == SOCKET_ERROR) { - warning("Unable to connect to map server"); + log("Warning: Unable to connect to map server"); throw "Unable to connect to map server"; return; } @@ -179,11 +180,11 @@ void map_start() { x = get_x(RFIFOP(6)); y = get_y(RFIFOP(6)); //direction = get_direction(RFIFOP(6)); - log("Protocol", "Player position: (%d, %d), Direction: %d", + log("Protocol: Player position: (%d, %d), Direction: %d", x, y, direction); RFIFOSKIP(11); } else if(0x0081) { - warning("Map server D/C"); + log("Warning: Map server D/C"); } else error("Unknown packet: map_start"); // Send "map loaded" WFIFOW(0) = net_w_value(0x007d); -- cgit v1.2.3-70-g09d2