diff --git a/source/games/exhumed/src/exhumed.cpp b/source/games/exhumed/src/exhumed.cpp index 72a63c084..0f25cffb8 100644 --- a/source/games/exhumed/src/exhumed.cpp +++ b/source/games/exhumed/src/exhumed.cpp @@ -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++; } diff --git a/source/games/exhumed/src/move.cpp b/source/games/exhumed/src/move.cpp index 5852cfca5..085f549ae 100644 --- a/source/games/exhumed/src/move.cpp +++ b/source/games/exhumed/src/move.cpp @@ -137,6 +137,7 @@ void MoveThings() } } + UpdateCreepySounds(); thinktime.Unclock(); }