From b5a9e699b9685e2a7d448171e282fd284754caf1 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 24 Mar 2005 21:24:31 +0000 Subject: Logger Implemented. (3/3) --- src/gui/char_select.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/gui/char_select.cpp') 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(); } -- cgit v1.2.3-70-g09d2