Force changing the timer_time for attack timers

Should fix issues with waiting for a slow timer after a cure
This commit is contained in:
Michael Cook (mackal)
2014-12-22 01:58:54 -05:00
parent b9fab9bc1b
commit 18fb86a560
3 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -141,11 +141,13 @@ uint32 Timer::GetRemainingTime() {
}
}
void Timer::SetAtTrigger(uint32 in_set_at_trigger, bool iEnableIfDisabled) {
void Timer::SetAtTrigger(uint32 in_set_at_trigger, bool iEnableIfDisabled, bool ChangeTimerTime) {
set_at_trigger = in_set_at_trigger;
if (!Enabled() && iEnableIfDisabled) {
Enable();
}
if (ChangeTimerTime)
timer_time = set_at_trigger;
}
void Timer::Trigger()