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/login.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/login.cpp')
-rw-r--r-- | src/gui/login.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp index 6e619757..342ea3dd 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -62,7 +62,7 @@ DIALOG login_dialog[] = { if(!username)strcpy(username, "player\0"); set_config_string("login", "username", username); } else set_config_string("login", "username", "player\0"); - log("Player", "username", username); + log("Network", "Username is %s", username); gui_exit = shutdown_dialog(player); if((gui_exit==5)||(key[KEY_ENTER])) { if(username[0]=='\0') { @@ -101,8 +101,8 @@ void server_login() { WFIFOSET(55); while((in_size<23)||(out_size>0))flush(); - log_hex("Login_Packet", "Packet_ID", RFIFOW(0)); - log_int("Login_Packet", "Packet_length", get_packet_length(RFIFOW(0))); + log("Network", "Packet ID: %x", RFIFOW(0)); + log("Network", "Packet length: %d", get_packet_length(RFIFOW(0))); if(RFIFOW(0)==0x0069) { while(in_size<RFIFOW(2))flush(); @@ -119,10 +119,10 @@ void server_login() { server_info[i].port = RFIFOW(47+32*i+4); state = CHAR_SERVER; } - log("Login_Packet", "server_address", iptostring(server_info[0].address)); - log("Login_Packet", "server_name", server_info[0].name); - log_int("Login_Packet", "server_users", server_info[0].online_users); - log_int("Login_Packet", "server_port", server_info[0].port); + log("Network", "Server: %s (%s:%d)", server_info[0].name, + iptostring(server_info[0].address), + server_info[0].port); + log("Network", "Users: %d", server_info[0].online_users); RFIFOSKIP(RFIFOW(2)); } else if(RFIFOW(0)==0x006a) { switch(RFIFOB(2)) { |