From ec2f8715fc2bfb4be3ec013fd2e0ecd5204bbff1 Mon Sep 17 00:00:00 2001 From: sirlemonhead Date: Tue, 29 Oct 2019 21:06:34 +0000 Subject: [PATCH] Fix branching bug that prevented the main menu from appearing. Also removed early return from DoTitle() so this function now runs. Have temporarily disabled the title screens for now by setting 'doTitle' to false. This has now made a new bug appear that causes the plasma effect to not display correctly - this is due to totalclock being 0 when menu_DoPlasma() is first called, resulting in nRandom being set to 0. --- source/exhumed/src/exhumed.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/exhumed/src/exhumed.cpp b/source/exhumed/src/exhumed.cpp index daea68887..fa5457ff1 100644 --- a/source/exhumed/src/exhumed.cpp +++ b/source/exhumed/src/exhumed.cpp @@ -1525,7 +1525,7 @@ int app_main(int argc, char const* const* argv) //int esi = 1; //int edi = esi; - int doTitle = kTrue; + int doTitle = kFalse; // REVERT kTrue; int stopTitle = kFalse; int tclocks, tclocks2; levelnew = 1; @@ -1902,7 +1902,7 @@ int app_main(int argc, char const* const* argv) // no forcelevel specified... if (!bPlayback) { - goto STARTGAME1; + goto MENU; } MENU: SavePosition = -1; @@ -2516,8 +2516,6 @@ short word_10010[] = {6, 25, 43, 50, 68, 78, 101, 111, 134, 158, 173, 230, 6000} void DoTitle() { - return; // REVERT - short theArray[13]; memcpy(theArray, word_10010, sizeof(word_10010));