diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-14 00:53:22 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-14 00:53:22 +0000 |
commit | 812103cea68f1da2004dd518c5ad3b448a0e1729 (patch) | |
tree | b4bc86a077385a219474bcb5bca727e0703ed52b /src/net/protocol.cpp | |
parent | 3628aae5ef1be719603d4aa8e1b209cf5e04520c (diff) | |
download | mana-client-812103cea68f1da2004dd518c5ad3b448a0e1729.tar.gz mana-client-812103cea68f1da2004dd518c5ad3b448a0e1729.tar.bz2 mana-client-812103cea68f1da2004dd518c5ad3b448a0e1729.tar.xz mana-client-812103cea68f1da2004dd518c5ad3b448a0e1729.zip |
Simplified logging for the sake of simplicity.
Diffstat (limited to 'src/net/protocol.cpp')
-rw-r--r-- | src/net/protocol.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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); |