diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-25 14:36:55 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-25 14:36:55 +0000 |
commit | 42f5932053d90dbc49a4401ef259e1f5ef58adbb (patch) | |
tree | 32f19e6910fd3fd43c8fa81757e26e9c45e1e8d5 /src/net/protocol.cpp | |
parent | b5a9e699b9685e2a7d448171e282fd284754caf1 (diff) | |
download | mana-42f5932053d90dbc49a4401ef259e1f5ef58adbb.tar.gz mana-42f5932053d90dbc49a4401ef259e1f5ef58adbb.tar.bz2 mana-42f5932053d90dbc49a4401ef259e1f5ef58adbb.tar.xz mana-42f5932053d90dbc49a4401ef259e1f5ef58adbb.zip |
Fix a few more log and error calls to make sure it compiles...
Diffstat (limited to 'src/net/protocol.cpp')
-rw-r--r-- | src/net/protocol.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/net/protocol.cpp b/src/net/protocol.cpp index ab873576..94c4a5e1 100644 --- a/src/net/protocol.cpp +++ b/src/net/protocol.cpp @@ -156,8 +156,9 @@ void set_coordinates(char *data, unsigned short x, unsigned short y, void map_start() { // Connect to map server - if (open_session(iptostring(map_address), map_port) == SOCKET_ERROR) { - log("Warning: Unable to connect to map server"); + if (open_session(iptostring(map_address), map_port) == SOCKET_ERROR) + { + logger.log("Warning: Unable to connect to map server"); throw "Unable to connect to map server"; return; } @@ -181,13 +182,13 @@ void map_start() startX = get_x(RFIFOP(6)); startY = get_y(RFIFOP(6)); int direction = get_direction(RFIFOP(6)); - log("Protocol: Player start position: (%d, %d), Direction: %d", + logger.log("Protocol: Player start position: (%d, %d), Direction: %d", startX, startY, direction); RFIFOSKIP(11); } else if (0x0081) { - log("Warning: Map server D/C"); + logger.log("Warning: Map server D/C"); } else { - error("Unknown packet: map_start"); + logger.error("Unknown packet: map_start"); } // Send "map loaded" |