From ca96d6732c71834c6424dfeb4b6696c381f6c662 Mon Sep 17 00:00:00 2001 From: ultramage Date: Thu, 10 Apr 2008 19:07:00 +0000 Subject: Modified the charservers to use a DBMap instead of a cyclic array for auth data. Merged the auth fix from r12473 to TXT as well. Removed the no-op from r12547. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12551 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/login_sql/login.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/login_sql') diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 66987b06a..ecae19264 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -668,8 +668,8 @@ int parse_fromchar(int fd) struct auth_node* node; int account_id = RFIFOL(fd,2); - int login_id1 = RFIFOL(fd,6); - int login_id2 = RFIFOL(fd,10); + uint32 login_id1 = RFIFOL(fd,6); + uint32 login_id2 = RFIFOL(fd,10); char sex = sex_num2str(RFIFOB(fd,14)); uint32 ip_ = ntohl(RFIFOL(fd,15)); RFIFOSKIP(fd,19); @@ -685,15 +685,6 @@ int parse_fromchar(int fd) uint32 expiration_time; char email[40]; - struct online_login_data* od = (struct online_login_data*)idb_get(online_db, account_id); - - //Leave info in online data DB [Kevin] - if(od->waiting_disconnect != -1) - { - delete_timer(od->waiting_disconnect, waiting_disconnect_timer); - od->waiting_disconnect = -1; - } - // each auth entry can only be used once idb_remove(auth_db, account_id); -- cgit v1.2.3-60-g2f50