diff options
author | Strangerke | 2014-01-04 22:08:04 +0100 |
---|---|---|
committer | Strangerke | 2014-01-04 22:09:15 +0100 |
commit | 8a8a918dbf3e74073f8149c33dbfb4247141e5f7 (patch) | |
tree | e231c3d465047a356f4abebd38310f9579966d41 /engines/tsage/ringworld2 | |
parent | b187acbf9ea4d9a81a39ebbf3a99f2db36155067 (diff) | |
download | scummvm-rg350-8a8a918dbf3e74073f8149c33dbfb4247141e5f7.tar.gz scummvm-rg350-8a8a918dbf3e74073f8149c33dbfb4247141e5f7.tar.bz2 scummvm-rg350-8a8a918dbf3e74073f8149c33dbfb4247141e5f7.zip |
TSAGE: Add some demo specific code in sceneExt::postinit()
Diffstat (limited to 'engines/tsage/ringworld2')
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_logic.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_logic.cpp b/engines/tsage/ringworld2/ringworld2_logic.cpp index 25eafbb171..92585eb29b 100644 --- a/engines/tsage/ringworld2/ringworld2_logic.cpp +++ b/engines/tsage/ringworld2/ringworld2_logic.cpp @@ -374,7 +374,16 @@ void SceneExt::postInit(SceneObjectList *OwnerList) { int prevScene = R2_GLOBALS._sceneManager._previousScene; int sceneNumber = R2_GLOBALS._sceneManager._sceneNumber; - if (((prevScene == -1) && (sceneNumber != 180) && (sceneNumber != 205) && (sceneNumber != 50)) + if (g_vm->getFeatures() & GF_DEMO) { + if (((prevScene == -1) && (sceneNumber != 180) && (sceneNumber != 205) && (sceneNumber != 50)) + || (prevScene == 0) || (sceneNumber == 600) + || ((prevScene == 205 || prevScene == 180) && (sceneNumber == 100))) { + R2_GLOBALS._uiElements._active = true; + R2_GLOBALS._uiElements.show(); + } else { + R2_GLOBALS._uiElements.updateInventory(); + } + } else if (((prevScene == -1) && (sceneNumber != 180) && (sceneNumber != 205) && (sceneNumber != 50)) || (sceneNumber == 50) || ((sceneNumber == 100) && (prevScene == 0 || prevScene == 180 || prevScene == 205))) { R2_GLOBALS._uiElements._active = true; |