aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova/state.cpp
diff options
context:
space:
mode:
authorThierry Crozat2017-12-14 00:12:41 +0000
committerThierry Crozat2018-01-23 02:15:43 +0000
commitab6ae19ab358254a84a804883513a9d2db0f059c (patch)
treede0277a2e1c29c1a508b5db0406275b77dfa952c /engines/supernova/state.cpp
parentbc78e613fdd187b2dec4e045c37c2178248ba195 (diff)
downloadscummvm-rg350-ab6ae19ab358254a84a804883513a9d2db0f059c.tar.gz
scummvm-rg350-ab6ae19ab358254a84a804883513a9d2db0f059c.tar.bz2
scummvm-rg350-ab6ae19ab358254a84a804883513a9d2db0f059c.zip
SUPERNOVA: Fix calling onEntrance for new rooms
There was an issue when the onEntrance for one room changes the current room. It would then fail to call onEntrance for that new room. This happened at lest once at the start as the Intro room onEntrance() changes to the first room at the end if the intro cutscene.
Diffstat (limited to 'engines/supernova/state.cpp')
-rw-r--r--engines/supernova/state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp
index 44ecfae0ac..e199e15d47 100644
--- a/engines/supernova/state.cpp
+++ b/engines/supernova/state.cpp
@@ -2204,8 +2204,8 @@ void GameManager::executeRoom() {
_vm->paletteBrightness();
if (!_currentRoom->hasSeen() && _newRoom) {
- _currentRoom->onEntrance();
_newRoom = false;
+ _currentRoom->onEntrance();
}
}