diff options
author | gumi <git@gumi.ca> | 2018-04-03 12:37:50 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-04-03 12:38:45 -0400 |
commit | c0ef729e6ec74d6a601ca3aeca6da6b2b9703e68 (patch) | |
tree | 87a3c2142b9f7742960c91f3f11dc9cc587703f7 | |
parent | cfeb9d925d583f3767f512ee554004513abbb69c (diff) | |
download | tmwa-c0ef729e6ec74d6a601ca3aeca6da6b2b9703e68.tar.gz tmwa-c0ef729e6ec74d6a601ca3aeca6da6b2b9703e68.tar.bz2 tmwa-c0ef729e6ec74d6a601ca3aeca6da6b2b9703e68.tar.xz tmwa-c0ef729e6ec74d6a601ca3aeca6da6b2b9703e68.zip |
always send a 0x2713 to char server when a 0x2712 is received
this should fix the char server freeze bug
-rw-r--r-- | src/login/login.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/login.cpp b/src/login/login.cpp index 7ae95c7..971516e 100644 --- a/src/login/login.cpp +++ b/src/login/login.cpp @@ -913,14 +913,13 @@ void parse_fromchar(Session *s) fixed_13.client_protocol_version = auth_fifo[i].client_version; send_fpacket<0x2713, 55>(s, fixed_13); - break; + goto x2712_out; } } break; } } // authentification not found - if (i == AUTH_FIFO_SIZE) { LOGIN_LOG("Char-server '%s': authentification of the account %d REFUSED (ip: %s).\n"_fmt, server[id].name, acc, ip); @@ -934,8 +933,9 @@ void parse_fromchar(Session *s) send_fpacket<0x2713, 55>(s, fixed_13); } } - break; } + x2712_out: + break; case 0x2714: { |