From 830aa82793adc2a009e12d9eb9eda20e29a0c9a8 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 27 Oct 2013 17:18:07 -0200 Subject: Fixed instance empty timer counter val could go off making the empty timer not to be run. Signed-off-by: shennetsind --- src/map/clif.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/map/clif.c b/src/map/clif.c index 205374aad..a051506d5 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -9246,10 +9246,6 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) { if( !(sd->sc.option&OPTION_INVISIBLE) ) { // increment the number of pvp players on the map map->list[sd->bl.m].users_pvp++; } - if( map->list[sd->bl.m].instance_id >= 0 ) { - instance->list[map->list[sd->bl.m].instance_id].users++; - instance->check_idle(map->list[sd->bl.m].instance_id); - } sd->state.debug_remove_map = 0; // temporary state to track double remove_map's [FlavioJS] // reset the callshop flag if the player changes map @@ -9439,6 +9435,10 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) { clif->broadcast(&sd->bl, output, strlen(output) + 1, BC_BLUE, SELF); } + if( map->list[sd->bl.m].instance_id >= 0 ) { + instance->list[map->list[sd->bl.m].instance_id].users++; + instance->check_idle(map->list[sd->bl.m].instance_id); + } map->iwall_get(sd); // Updates Walls Info on this Map to Client status_calc_pc(sd, false);/* some conditions are map-dependent so we must recalculate */ sd->state.changemap = false; -- cgit v1.2.3-70-g09d2