try to avoid calling timers two times in a row...

This commit is contained in:
ALONSO Laurent
2022-07-14 13:37:11 +02:00
committed by Celtic Minstrel
parent dbdb7b8caf
commit 4eb9be21c6

View File

@@ -1855,7 +1855,7 @@ void special_increase_age(long length, bool queue) {
if(univ.town->timers[i].time > 0) {
short time = univ.town->timers[i].time;
bool need_redraw = false;
for(unsigned long j = age_before + (time == 1); j <= current_age; j++)
for(unsigned long j = age_before + 1; j <= current_age; j++)
if(j % time == 0) {
if(queue) {
univ.party.age = j;
@@ -1872,7 +1872,7 @@ void special_increase_age(long length, bool queue) {
if(univ.scenario.scenario_timers[i].time > 0) {
short time = univ.scenario.scenario_timers[i].time;
bool need_redraw = false;
for(unsigned long j = age_before + (time == 1); j <= current_age; j++)
for(unsigned long j = age_before + 1; j <= current_age; j++)
if(j % time == 0) {
if(queue) {
univ.party.age = j;