aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2013-11-24 10:58:32 -0500
committerPaul Gilbert2013-11-24 10:58:32 -0500
commit552f2a52bddbaacdf67929414b796e8f5f093d49 (patch)
treed9c30999120b0c8d4dacd6095fdd55e5e25b7ba0 /engines
parent831b68d986ce37665cc4ae6653ba1d44d3e1b1f8 (diff)
downloadscummvm-rg350-552f2a52bddbaacdf67929414b796e8f5f093d49.tar.gz
scummvm-rg350-552f2a52bddbaacdf67929414b796e8f5f093d49.tar.bz2
scummvm-rg350-552f2a52bddbaacdf67929414b796e8f5f093d49.zip
TSAGE: Fix R2R shading map not being setup if you restarted game whilst in-game
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/ringworld2/ringworld2_logic.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_logic.cpp b/engines/tsage/ringworld2/ringworld2_logic.cpp
index 4e0ca915fb..e735f4ffb1 100644
--- a/engines/tsage/ringworld2/ringworld2_logic.cpp
+++ b/engines/tsage/ringworld2/ringworld2_logic.cpp
@@ -371,12 +371,13 @@ void SceneExt::postInit(SceneObjectList *OwnerList) {
_field12 = 0;
_sceneMode = 0;
+ static_cast<SceneHandlerExt *>(R2_GLOBALS._sceneHandler)->setupPaletteMaps();
+
int prevScene = R2_GLOBALS._sceneManager._previousScene;
int sceneNumber = R2_GLOBALS._sceneManager._sceneNumber;
if (((prevScene == -1) && (sceneNumber != 180) && (sceneNumber != 205) && (sceneNumber != 50))
|| (sceneNumber == 50)
|| ((sceneNumber == 100) && (prevScene == 0 || prevScene == 180 || prevScene == 205))) {
- static_cast<SceneHandlerExt *>(R2_GLOBALS._sceneHandler)->setupPaletteMaps();
R2_GLOBALS._uiElements._active = true;
R2_GLOBALS._uiElements.show();
} else {