diff options
author | shennetsind <ind@henn.et> | 2014-03-22 17:51:21 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-03-22 17:51:21 -0300 |
commit | 3b0597c7f7696265df322d4d858d9cb80c64954f (patch) | |
tree | e021d75d61067782ae0792ed7c714c1364b2c06b /src/map | |
parent | ad354f5d15e1060ee9c8d88d3228123d6520e8e4 (diff) | |
download | hercules-3b0597c7f7696265df322d4d858d9cb80c64954f.tar.gz hercules-3b0597c7f7696265df322d4d858d9cb80c64954f.tar.bz2 hercules-3b0597c7f7696265df322d4d858d9cb80c64954f.tar.xz hercules-3b0597c7f7696265df322d4d858d9cb80c64954f.zip |
Follow up 4cc9d5f91cf6276e28cc02bb75fc4158d28d553b
Fixed the afk-kick timer, special thanks to AnnieRuru.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/battleground.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battleground.c b/src/map/battleground.c index 3640b8344..68539e25d 100644 --- a/src/map/battleground.c +++ b/src/map/battleground.c @@ -623,7 +623,7 @@ int bg_afk_timer(int tid, int64 tick, int id, intptr_t data) { for( sd = (TBL_PC*)mapit->first(iter); mapit->exists(iter); sd = (TBL_PC*)mapit->next(iter) ) { if( !sd->bg_queue.arena || !sd->bg_id ) continue; - if( DIFF_TICK(sockt->last_tick, sd->idletime) < bg->mafksec ) + if( DIFF_TICK(sockt->last_tick, sd->idletime) > bg->mafksec ) bg->team_leave(sd,BGTL_AFK); count++; } |