summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-31 19:23:34 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-31 19:23:34 +0000
commit84be7444dfc7f9f11ce0857b19bbd9401f30116e (patch)
tree0441fe8346ef8a07929736792d6b8f1ab5b23b89 /src/map/chrif.c
parent0da3671876a62ff48b990990e2e1723865bc8cd7 (diff)
downloadhercules-84be7444dfc7f9f11ce0857b19bbd9401f30116e.tar.gz
hercules-84be7444dfc7f9f11ce0857b19bbd9401f30116e.tar.bz2
hercules-84be7444dfc7f9f11ce0857b19bbd9401f30116e.tar.xz
hercules-84be7444dfc7f9f11ce0857b19bbd9401f30116e.zip
* 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
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c8
1 files changed, 2 insertions, 6 deletions
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;
}