summaryrefslogtreecommitdiff
path: root/src/gui/char_select.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-03-24 21:24:31 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-03-24 21:24:31 +0000
commitb5a9e699b9685e2a7d448171e282fd284754caf1 (patch)
tree4c8787fb30d28ec685bbcbb2ddca962b838a256d /src/gui/char_select.cpp
parentadf5fb5d45c11a0506d199d2cc672535c8418ce1 (diff)
downloadMana-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.cpp11
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();
}