diff options
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 40b8491b5..90736dd1e 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -7694,6 +7694,20 @@ int map_night_timer(int tid, unsigned int tick, int id, int data) { // by [yor] return 0; } +/*========================================== + * I'm alive timer (to prevent double connect bug) by Valaris + *------------------------------------------ + */ +int pc_alive_timer(int tid,unsigned int tick,int id,int data) +{ + struct map_session_data *sd=(struct map_session_data*)map_id2bl(id); + nullpo_retr(0, sd); + if(sd->alive_timer != tid) + return 0; + map_quit(sd); + return 0; +} + void pc_setstand(struct map_session_data *sd){ nullpo_retv(sd); @@ -8111,14 +8125,3 @@ int do_init_pc(void) { return 0; } - -//Valaris -int pc_alive_timer(int tid,unsigned int tick,int id,int data) -{ - struct map_session_data *sd=(struct map_session_data*)map_id2bl(id); - nullpo_retr(0, sd); - if(sd->alive_timer != tid) - return 0; - map_quit(sd); - return 0; -}
\ No newline at end of file |