diff options
author | Paul Gilbert | 2013-10-07 10:11:50 -0400 |
---|---|---|
committer | Paul Gilbert | 2013-10-07 10:11:50 -0400 |
commit | 402b7a03716825f5381d65d594a1c8c82e13e877 (patch) | |
tree | 04e729411a9de391f05a1ce32678629f61f0b024 | |
parent | 303261482de2f2c1bf1f1fb4d2e016b0555ba715 (diff) | |
download | scummvm-rg350-402b7a03716825f5381d65d594a1c8c82e13e877.tar.gz scummvm-rg350-402b7a03716825f5381d65d594a1c8c82e13e877.tar.bz2 scummvm-rg350-402b7a03716825f5381d65d594a1c8c82e13e877.zip |
TSAGE: R2R changes to UI disablement to match the original
-rw-r--r-- | engines/tsage/core.cpp | 14 | ||||
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_scenes0.cpp | 7 |
2 files changed, 14 insertions, 7 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp index 6f356d8c44..22c7e32492 100644 --- a/engines/tsage/core.cpp +++ b/engines/tsage/core.cpp @@ -3324,20 +3324,24 @@ void Player::postInit(SceneObjectList *OwnerList) { void Player::disableControl() { _canWalk = false; - _uiEnabled = false; g_globals->_events.setCursor(CURSOR_NONE); _enabled = false; - if ((g_vm->getGameID() != GType_Ringworld) && T2_GLOBALS._uiElements._active) - T2_GLOBALS._uiElements.hide(); + if (g_vm->getGameID() != GType_Ringworld2) { + _uiEnabled = false; + + if ((g_vm->getGameID() != GType_Ringworld) && T2_GLOBALS._uiElements._active) + T2_GLOBALS._uiElements.hide(); + } } void Player::enableControl() { CursorType cursor; _canWalk = true; - _uiEnabled = true; _enabled = true; + if (g_vm->getGameID() != GType_Ringworld2) + _uiEnabled = true; switch (g_vm->getGameID()) { case GType_BlueForce: @@ -3345,7 +3349,7 @@ void Player::enableControl() { cursor = g_globals->_events.getCursor(); g_globals->_events.setCursor(cursor); - if (T2_GLOBALS._uiElements._active) + if (g_vm->getGameID() == GType_BlueForce && T2_GLOBALS._uiElements._active) T2_GLOBALS._uiElements.show(); break; diff --git a/engines/tsage/ringworld2/ringworld2_scenes0.cpp b/engines/tsage/ringworld2/ringworld2_scenes0.cpp index 76f3097dd2..26794838f2 100644 --- a/engines/tsage/ringworld2/ringworld2_scenes0.cpp +++ b/engines/tsage/ringworld2/ringworld2_scenes0.cpp @@ -2601,8 +2601,10 @@ void Scene250::synchronize(Serializer &s) { void Scene250::postInit(SceneObjectList *OwnerList) { loadScene(250); SceneExt::postInit(); + BF_GLOBALS._interfaceY = 200; R2_GLOBALS._player.postInit(); + R2_GLOBALS._uiElements._active = false; R2_GLOBALS._player.setVisage(10); R2_GLOBALS._player.hide(); R2_GLOBALS._player.enableControl(); @@ -6944,17 +6946,18 @@ Scene825::Scene825(): SceneExt() { } void Scene825::postInit(SceneObjectList *OwnerList) { - SceneExt::postInit(); loadScene(825); - R2_GLOBALS._player._uiEnabled = false; + SceneExt::postInit(); BF_GLOBALS._interfaceY = 200; R2_GLOBALS._player.postInit(); + R2_GLOBALS._uiElements._active = false; R2_GLOBALS._player._effect = 0; R2_GLOBALS._player.setVisage(10); R2_GLOBALS._player.hide(); R2_GLOBALS._player.disableControl(); + _console.setDetails(1, 825, 3, 4, 5); _background.setDetails(Rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT), 825, 0, -1, -1, 1, NULL); |