summaryrefslogtreecommitdiff
path: root/src/map/battleground.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/battleground.c')
-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++;
}