Fix execution of scripts when playing movies

This commit is contained in:
Alexander Batalov 2022-05-20 10:43:35 +03:00
parent 8fd7a540e3
commit 7db7a9afe2
1 changed files with 3 additions and 1 deletions

View File

@ -628,7 +628,9 @@ void _doBkProcesses()
_updateWindows(); _updateWindows();
if (gScriptsEnabled && _script_engine_run_critters) { if (gScriptsEnabled && _script_engine_run_critters) {
if (!_gdialogActive()) { // SFALL: Fix to prevent the execution of critter_p_proc and game events
// when playing movies.
if (!_gdialogActive() && !gameMovieIsPlaying()) {
_script_chk_critters(); _script_chk_critters();
_script_chk_timed_events(); _script_chk_timed_events();
} }