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:
Kaloyan Chehlarski committed 2023-09-25 14:37:37 +03:00
1 parent 60ffa2ee81
commit fdbd8b248d
1 file changed
+5 -1
+5 -1
View File
@@ -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();
}