From 34b3665f3df1c05445062101f5de0b1c2c378e6b Mon Sep 17 00:00:00 2001 From: epoque11 Date: Wed, 21 Mar 2012 11:41:09 +0000 Subject: - Fixed characters being automatically deleted when confirmation was required (bugreport:5479) - Follow up r15738, removed existing deletion bug fix code to include the new fix git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15740 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char/char.c | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'src/char') diff --git a/src/char/char.c b/src/char/char.c index ae8821cbe..df0a9add5 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -921,11 +921,6 @@ int mmo_chars_fromsql(struct char_session_data* sd, uint8* buf) } for( i = 0; i < MAX_CHARS && SQL_SUCCESS == SqlStmt_NextRow(stmt); i++ ) { - if( p.delete_date && p.delete_date < time(NULL) ) { - delete_char_sql(p.char_id); - i--; - continue; - } p.last_point.map = mapindex_name2id(last_map); sd->found_char[i] = p.char_id; j += mmo_char_tobuf(WBUFP(buf, j), &p); @@ -3291,11 +3286,11 @@ static void char_delete2_req(int fd, struct char_session_data* sd) char_delete2_ack(fd, char_id, 3, 0); return; } - + Sql_GetData(sql_handle, 0, &data, NULL); guild_id = atoi(data); Sql_GetData(sql_handle, 1, &data, NULL); party_id = atoi(data); Sql_GetData(sql_handle, 2, &data, NULL); delete_date = strtoul(data, NULL, 10); - + if( delete_date ) {// character already queued for deletion char_delete2_ack(fd, char_id, 0, 0); @@ -3318,22 +3313,6 @@ static void char_delete2_req(int fd, struct char_session_data* sd) return; } */ - - if( char_del_delay == 0 ) - {// immediately delete the character if no character deletion delay is found - int k; - - // delete the character entirely - delete_char_sql(char_id); - - // refresh character list cache - for( k = i; k < MAX_CHARS - 1; ++ k ) - sd->found_char[k] = sd->found_char[k + 1]; - - // send the notification packets of this - char_delete2_ack(fd, char_id, 1, time(NULL)); - char_delete2_accept_ack(fd, char_id, 1); - } // success delete_date = time(NULL)+char_del_delay; -- cgit v1.2.3-60-g2f50