apply timer countdown patch from DeadNotBuried
This commit is contained in:
parent
9e3e8751dc
commit
b106af714a
1 changed files with 5 additions and 3 deletions
|
@ -339,9 +339,11 @@ run_mod_timers (int ismidnight)
|
|||
continue;
|
||||
break;
|
||||
case TIMER_TYPE_COUNTDOWN:
|
||||
timer->interval--;
|
||||
if( timer->interval > 0)
|
||||
continue;
|
||||
if (me.now - timer->lastrun < timer->interval) {
|
||||
timer->interval -= (me.now - timer->lastrun);
|
||||
timer->lastrun = me.now;
|
||||
continue;
|
||||
}
|
||||
deleteme = 1;
|
||||
break;
|
||||
}
|
||||
|
|
Reference in a new issue