summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-20 17:49:30 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-20 17:49:30 +0000
commit7c958b1bd13c14022fb118fca661eb449645c87a (patch)
treeb6776d6eb162b0b0c834b8a5a83417e77412c314 /src/map/clif.c
parentc5d586a611baf934fe30b2291e51002a4506bdbb (diff)
downloadhercules-7c958b1bd13c14022fb118fca661eb449645c87a.tar.gz
hercules-7c958b1bd13c14022fb118fca661eb449645c87a.tar.bz2
hercules-7c958b1bd13c14022fb118fca661eb449645c87a.tar.xz
hercules-7c958b1bd13c14022fb118fca661eb449645c87a.zip
some Valaris's fixes of "double connect bug"
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@663 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 36001f74e..951eed42c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -3543,6 +3543,7 @@ void clif_getareachar_pc(struct map_session_data* sd,struct map_session_data* ds
* NPC•\Ž¦
*------------------------------------------
*/
+//fixed by Valaris
void clif_getareachar_npc(struct map_session_data* sd,struct npc_data* nd)
int len;
nullpo_retv(sd);
@@ -3560,6 +3561,7 @@ void clif_getareachar_npc(struct map_session_data* sd,struct npc_data* nd)
clif_dispchat((struct chat_data*)map_id2bl(nd->chat_id),sd->fd);
}
}
+
/*==========================================
* ˆÚ“®’âŽ~
*------------------------------------------
@@ -7424,6 +7426,12 @@ void clif_parse_TickSend(int fd, struct map_session_data *sd) {
sd->client_tick = RFIFOL(fd,2);
break;
}
+
+ //double connection bug fix by Valaris
+ if(sd->alive_timer)
+ delete_timer(sd->alive_timer,pc_alive_timer);
+ sd->alive_timer=add_timer(gettick()+60*1000,pc_alive_timer,sd->bl.id,0);
+
sd->server_tick = gettick();
clif_servertick(sd);
}