mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-23 17:31:14 +00:00
- Exhumed: Move UpdateCreepySounds()
into MoveThings()
so its processing time can be clocked.
This commit is contained in:
parent
b958ae2340
commit
b93a2cf61b
2 changed files with 7 additions and 21 deletions
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
|
@ -137,6 +137,7 @@ void MoveThings()
|
|||
}
|
||||
}
|
||||
|
||||
UpdateCreepySounds();
|
||||
thinktime.Unclock();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue