diff options
author | Paul Gilbert | 2017-11-22 19:41:49 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-11-22 19:41:49 -0500 |
commit | 5dad41851e9559675a2530539efa56d25f3566f4 (patch) | |
tree | 4aa6bac58c398e19b9cc97950c2504cddccef60d /engines/tsage | |
parent | bf8e4f5dd0ab68f50b91750ebb42d04cc9bc0af2 (diff) | |
download | scummvm-rg350-5dad41851e9559675a2530539efa56d25f3566f4.tar.gz scummvm-rg350-5dad41851e9559675a2530539efa56d25f3566f4.tar.bz2 scummvm-rg350-5dad41851e9559675a2530539efa56d25f3566f4.zip |
TSAGE: R2R: Fix brief flash of UI when starting demo
Diffstat (limited to 'engines/tsage')
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_logic.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_logic.cpp b/engines/tsage/ringworld2/ringworld2_logic.cpp index e8d51109b1..f54efb5a8a 100644 --- a/engines/tsage/ringworld2/ringworld2_logic.cpp +++ b/engines/tsage/ringworld2/ringworld2_logic.cpp @@ -387,9 +387,13 @@ void SceneExt::postInit(SceneObjectList *OwnerList) { int prevScene = R2_GLOBALS._sceneManager._previousScene; int sceneNumber = R2_GLOBALS._sceneManager._sceneNumber; if (g_vm->getFeatures() & GF_DEMO) { - if (((prevScene == -1) && (sceneNumber != 180) && (sceneNumber != 205) && (sceneNumber != 50)) + if (prevScene == 0 && sceneNumber == 180) { + // Very start of the demo, title & intro about to be shown + R2_GLOBALS._uiElements._active = false; + R2_GLOBALS._uiElements.hide(); + } else if (((prevScene == -1) && (sceneNumber != 180) && (sceneNumber != 205) && (sceneNumber != 50)) || (prevScene == 0) || (sceneNumber == 600) - || ((prevScene == 205 || prevScene == 180) && (sceneNumber == 100))) { + || ((prevScene == 205 || prevScene == 180 || prevScene == 50) && (sceneNumber == 100))) { R2_GLOBALS._uiElements._active = true; R2_GLOBALS._uiElements.show(); } else { |