summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-03-22 17:51:21 -0300
committershennetsind <ind@henn.et>2014-03-22 17:51:21 -0300
commit3b0597c7f7696265df322d4d858d9cb80c64954f (patch)
treee021d75d61067782ae0792ed7c714c1364b2c06b /src/map
parentad354f5d15e1060ee9c8d88d3228123d6520e8e4 (diff)
downloadhercules-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.c2
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++;
}