mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
NANCY: Stop record processing after changing scene
Further ActionRecords now stop being processed as soon as changeScene() is called, instead of getting one last frame of processing. This fixes nancy4 scene 5708, where clicking the gate circle would previously activate a sound effect that it shouldn't
This commit is contained in:
1 parent
60ffa2ee81
commit
fdbd8b248d
1 file changed
+5
-1
@@ -257,10 +257,14 @@ void ActionManager::processActionRecords() {
|
||||
|
||||
record->execute();
|
||||
}
|
||||
|
||||
if (NancySceneState._state == State::Scene::kLoad) {
|
||||
// changeScene() must have been called, abort any further processing
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
synchronizeMovieWithSound();
|
||||
|
||||
debugDrawHotspots();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user