summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-05 07:04:22 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-05 07:04:22 +0000
commit8e87d2d3248835de4a3677fa16c8abf31e36e570 (patch)
tree06e7f070863e2eeab7b3af9d434a3632045d454c /src/map/pc.c
parentdc28241d3c6716fed00b78d9a6977f89c4644178 (diff)
downloadhercules-8e87d2d3248835de4a3677fa16c8abf31e36e570.tar.gz
hercules-8e87d2d3248835de4a3677fa16c8abf31e36e570.tar.bz2
hercules-8e87d2d3248835de4a3677fa16c8abf31e36e570.tar.xz
hercules-8e87d2d3248835de4a3677fa16c8abf31e36e570.zip
* Fixed skill_require_db reading somehow getting corrupted if weapons usable for the skill is more than 20
* Fixed @killmonster crashing the server with summoned monsters git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@908 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 8f2ce5654..adc2d68da 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -720,8 +720,14 @@ int pc_authok(int id, int login_id2, time_t connect_until_time, struct mmo_chars
sd = map_id2sd(id);
nullpo_retr(1, sd);
+ // check if double login occured
+ if(sd->new_fd){
+ // 2重login状態だったので、両方落す
+ clif_authfail_fd(sd->fd,2); // same id
+ clif_authfail_fd(sd->new_fd,8); // same id
+ return 1;
+ }
sd->login_id2 = login_id2;
-
memcpy(&sd->status, st, sizeof(*st));
if (sd->status.sex != sd->sex) {
@@ -945,6 +951,13 @@ int pc_authfail(int id) {
if (sd == NULL)
return 1;
+ if(sd->new_fd){
+ // 2重login状態だったので、新しい接続のみ落す
+ clif_authfail_fd(sd->new_fd,0);
+ sd->new_fd=0;
+ return 0;
+ }
+
clif_authfail_fd(sd->fd, 0);
return 0;