Also reset the time to 0, to indicate the timer is inactive

This commit is contained in:
2023-01-18 20:32:53 -05:00
parent 4eb9be21c6
commit c7f4cee684

View File

@@ -1861,6 +1861,7 @@ void special_increase_age(long length, bool queue) {
univ.party.age = j; univ.party.age = j;
queue_special(eSpecCtx::TOWN_TIMER, eSpecCtxType::TOWN, univ.town->timers[i].node, trigger_loc); queue_special(eSpecCtx::TOWN_TIMER, eSpecCtxType::TOWN, univ.town->timers[i].node, trigger_loc);
} else run_special(eSpecCtx::TOWN_TIMER, eSpecCtxType::TOWN, univ.town->timers[i].node, trigger_loc, nullptr, nullptr, &need_redraw); } else run_special(eSpecCtx::TOWN_TIMER, eSpecCtxType::TOWN, univ.town->timers[i].node, trigger_loc, nullptr, nullptr, &need_redraw);
univ.town->timers[i].time = 0;
} }
stat_area = true; stat_area = true;
if(need_redraw) if(need_redraw)
@@ -1878,6 +1879,7 @@ void special_increase_age(long length, bool queue) {
univ.party.age = j; univ.party.age = j;
queue_special(eSpecCtx::SCEN_TIMER, eSpecCtxType::SCEN, univ.scenario.scenario_timers[i].node, trigger_loc); queue_special(eSpecCtx::SCEN_TIMER, eSpecCtxType::SCEN, univ.scenario.scenario_timers[i].node, trigger_loc);
} else run_special(eSpecCtx::SCEN_TIMER, eSpecCtxType::SCEN, univ.scenario.scenario_timers[i].node, trigger_loc, nullptr, nullptr,&need_redraw); } else run_special(eSpecCtx::SCEN_TIMER, eSpecCtxType::SCEN, univ.scenario.scenario_timers[i].node, trigger_loc, nullptr, nullptr,&need_redraw);
univ.scenario.scenario_timers[i].time = 0;
} }
stat_area = true; stat_area = true;
if(need_redraw) if(need_redraw)