diff options
author | Thierry Crozat | 2017-12-14 00:12:41 +0000 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:43 +0000 |
commit | ab6ae19ab358254a84a804883513a9d2db0f059c (patch) | |
tree | de0277a2e1c29c1a508b5db0406275b77dfa952c /engines/supernova | |
parent | bc78e613fdd187b2dec4e045c37c2178248ba195 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/supernova/state.cpp | 2 |
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(); } } |