diff options
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(); } |