From 3b0597c7f7696265df322d4d858d9cb80c64954f Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 22 Mar 2014 17:51:21 -0300 Subject: Follow up 4cc9d5f91cf6276e28cc02bb75fc4158d28d553b Fixed the afk-kick timer, special thanks to AnnieRuru. Signed-off-by: shennetsind --- src/map/battleground.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/battleground.c') 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++; } -- cgit v1.2.3-60-g2f50