- Exhumed: Move UpdateCreepySounds() into MoveThings() so its processing time can be clocked.

This commit is contained in:
Mitchell Richters 2023-04-21 15:04:38 +10:00
parent b958ae2340
commit b93a2cf61b
2 changed files with 7 additions and 21 deletions

View file

@ -275,11 +275,10 @@ void DoGameOverScene(bool finallevel)
static void GameMove(void)
{
UpdateInterpolations();
FixPalette();
ExhumedSpriteIterator it;
while (auto ac = it.Next())
while (const auto ac = it.Next())
{
ac->backuploc();
}
@ -291,33 +290,19 @@ static void GameMove(void)
DoGameOverScene(true);
return;
}
// Pink section
nButtonColor--;
lCountDown--;
DrawClock();
if (nRedTicks)
{
nRedTicks--;
if (nRedTicks && --nRedTicks <= 0)
DoRedAlert(0);
if (nRedTicks <= 0) {
DoRedAlert(0);
}
}
nAlarmTicks--;
nButtonColor--;
if (nAlarmTicks <= 0) {
if (--nAlarmTicks <= 0)
DoRedAlert(1);
}
}
// YELLOW SECTION
MoveThings();
UpdateCreepySounds();
// loc_120E9:
totalmoves++;
}

View file

@ -137,6 +137,7 @@ void MoveThings()
}
}
UpdateCreepySounds();
thinktime.Unclock();
}