From 84be7444dfc7f9f11ce0857b19bbd9401f30116e Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Mon, 31 Dec 2007 19:23:34 +0000 Subject: * Added code to reject double logins in clif_parse_WantToConnection and added debug messages to detect possible double logins that escaped. * Isolated accounts that are waiting for the quit ack. The rest of the game logic no longer has access to them though the id2sd/charid2sd dbs. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11998 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/chrif.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/map/chrif.c') diff --git a/src/map/chrif.c b/src/map/chrif.c index 11ce53ae7..390c53966 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -273,11 +273,7 @@ int chrif_removemap(int fd) // received after a character has been "final saved" on the char-server int chrif_save_ack(int fd) { - struct map_session_data *sd; - sd = map_id2sd(RFIFOL(fd,2)); - - if (sd && sd->status.char_id == RFIFOL(fd,6)) - map_quit_ack(sd); + map_quit_ack(RFIFOL(fd,2), RFIFOL(fd,6)); return 0; } @@ -332,7 +328,7 @@ int chrif_changemapserverack(int account_id, int login_id1, int login_id2, int c //Player has been saved already, remove him from memory. [Skotlex] map_quit(sd); - map_quit_ack(sd); + map_quit_ack(sd->status.account_id, sd->status.char_id); return 0; } -- cgit v1.2.3-60-g2f50