diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-11 01:08:52 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-11 01:08:52 +0000 |
commit | 06c3e2cbf10034bd348376632ccc30de9da97e5d (patch) | |
tree | b17a6f6dd71571aa8192003ecdc976ebb717027f /src/gui/char_select.cpp | |
parent | 2a964c1fa537e58daee14af6a68a3ef0224c8d65 (diff) | |
download | mana-06c3e2cbf10034bd348376632ccc30de9da97e5d.tar.gz mana-06c3e2cbf10034bd348376632ccc30de9da97e5d.tar.bz2 mana-06c3e2cbf10034bd348376632ccc30de9da97e5d.tar.xz mana-06c3e2cbf10034bd348376632ccc30de9da97e5d.zip |
Removed Allegro dependency on logger, which now also produces timestamped
categorized messages instead of using the configuration file approach.
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r-- | src/gui/char_select.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index 76a2d01d..1a109836 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -144,10 +144,11 @@ void server_char_select() { WFIFOSET(3); while((in_size<3)||(out_size>0))flush(); - log_hex("Char_Select_Packet", "Packet_ID", RFIFOW(0)); - log_int("Char_Select_Packet", "Packet_length", get_length(RFIFOW(0))); - log_int("Char_Select_Packet", "Packet_in_size", RFIFOW(2)); - log_int("Char_Select_Packet", "In_size", in_size); + 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); if(RFIFOW(0)==0x0071) { while(in_size<28)flush(); @@ -158,9 +159,8 @@ void server_char_select() { map_port = RFIFOW(26); state = GAME; - log("Player", "map", map_name); - log("Char_Select_packet", "server_address", iptostring(map_address)); - log_int("Char_Select_packet", "server_port", map_port); + log("CharSelect", "Map: %s", map_name); + log("CharSelect", "Server: %s:%d", iptostring(map_address), map_port); RFIFOSKIP(28); close_session(); } else if(RFIFOW(0)==0x006c) { |