diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-03-24 21:24:31 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-03-24 21:24:31 +0000 |
commit | b5a9e699b9685e2a7d448171e282fd284754caf1 (patch) | |
tree | 4c8787fb30d28ec685bbcbb2ddca962b838a256d /src/gui/char_select.cpp | |
parent | adf5fb5d45c11a0506d199d2cc672535c8418ce1 (diff) | |
download | mana-b5a9e699b9685e2a7d448171e282fd284754caf1.tar.gz mana-b5a9e699b9685e2a7d448171e282fd284754caf1.tar.bz2 mana-b5a9e699b9685e2a7d448171e282fd284754caf1.tar.xz mana-b5a9e699b9685e2a7d448171e282fd284754caf1.zip |
Logger Implemented. (3/3)
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r-- | src/gui/char_select.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index 431297e9..97c35a57 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -21,6 +21,7 @@ * $Id$ */ +#include "../main.h" #include "char_select.h" #include "textfield.h" #include "button.h" @@ -195,7 +196,7 @@ void CharSelectDialog::serverCharDelete() { RFIFOSKIP(3); } else { - new OkDialog(this, "Error", "Unknown error"); + new OkDialog(this, "Error", "Unknown"); } } @@ -210,11 +211,11 @@ void CharSelectDialog::serverCharSelect() flush(); } - log("CharSelect: Packet ID: %x, Length: %d, Packet_in_size %d", + logger.log("CharSelect: Packet ID: %x, Length: %d, Packet_in_size %d", RFIFOW(0), get_length(RFIFOW(0)), RFIFOW(2)); - log("CharSelect: In_size: %d", in_size); + logger.log("CharSelect: In_size: %d", in_size); if (RFIFOW(0) == 0x0071) { while (in_size < 28) { @@ -228,8 +229,8 @@ void CharSelectDialog::serverCharSelect() map_port = RFIFOW(26); state = GAME; - log("CharSelect: Map: %s", map_name); - log("CharSelect: Server: %s:%d", iptostring(map_address), map_port); + logger.log("CharSelect: Map: %s", map_name); + logger.log("CharSelect: Server: %s:%d", iptostring(map_address), map_port); RFIFOSKIP(28); close_session(); } |