diff options
Diffstat (limited to 'src/login/login.cpp')
-rw-r--r-- | src/login/login.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/login/login.cpp b/src/login/login.cpp index 2f9b756..49c2438 100644 --- a/src/login/login.cpp +++ b/src/login/login.cpp @@ -1002,12 +1002,6 @@ void parse_fromchar(Session *s) { send_fpacket<0x2731, 11>(ss, fixed_31); } - - for (int j = 0; j < AUTH_FIFO_SIZE; j++) - { - if (auth_fifo[j].account_id == acc) - auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentification) - } } ad.state = statut; } @@ -1078,12 +1072,6 @@ void parse_fromchar(Session *s) { send_fpacket<0x2731, 11>(ss, fixed_31); } - - for (int j = 0; j < AUTH_FIFO_SIZE; j++) - { - if (auth_fifo[j].account_id == acc) - auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentification) - } } else { @@ -1623,11 +1611,6 @@ void parse_admin(Session *s) { send_fpacket<0x2731, 11>(ss, fixed_31); } - - for (int j = 0; j < AUTH_FIFO_SIZE; j++) - if (auth_fifo[j].account_id == - ad->account_id) - auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentification) } ad->state = statut; ad->error_message = error_message; @@ -1738,12 +1721,6 @@ void parse_admin(Session *s) if (ad->sex != sex) { fixed_3d.account_id = ad->account_id; - for (int j = 0; j < AUTH_FIFO_SIZE; j++) - { - if (auth_fifo[j].account_id == - ad->account_id) - auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentification) - } ad->sex = sex; LOGIN_LOG("'ladmin': Modification of a sex (account: %s, new sex: %c, ip: %s)\n"_fmt, ad->userid, sex_to_char(sex), ip); @@ -2074,13 +2051,6 @@ void parse_admin(Session *s) { send_fpacket<0x2731, 11>(ss, fixed_31); } - - for (int j = 0; j < AUTH_FIFO_SIZE; j++) - { - if (auth_fifo[j].account_id == - ad->account_id) - auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentification) - } } ad->ban_until_time = timestamp; } @@ -2159,13 +2129,6 @@ void parse_admin(Session *s) { send_fpacket<0x2731, 11>(ss, fixed_31); } - - for (int j = 0; j < AUTH_FIFO_SIZE; j++) - { - if (auth_fifo[j].account_id == - ad->account_id) - auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentification) - } } ad->ban_until_time = timestamp; } @@ -3103,8 +3066,6 @@ int do_init(Slice<ZString> argv) login::save_config_in_log(); runflag &= login::lan_check(); - for (int i = 0; i < login::AUTH_FIFO_SIZE; i++) - login::auth_fifo[i].delflag = 1; for (int i = 0; i < login::MAX_SERVERS; i++) login::server_session[i] = nullptr; |