mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 02:17:05 +00:00
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.
This commit is contained in:
parent
bc78e613fd
commit
ab6ae19ab3
@ -2204,8 +2204,8 @@ void GameManager::executeRoom() {
|
||||
_vm->paletteBrightness();
|
||||
|
||||
if (!_currentRoom->hasSeen() && _newRoom) {
|
||||
_currentRoom->onEntrance();
|
||||
_newRoom = false;
|
||||
_currentRoom->onEntrance();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user