From 7db7a9afe2c7ff73cba3e4557cd615cc688cf121 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Fri, 20 May 2022 10:43:35 +0300 Subject: [PATCH] Fix execution of scripts when playing movies --- src/scripts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts.c b/src/scripts.c index 849c15d..617a173 100644 --- a/src/scripts.c +++ b/src/scripts.c @@ -628,7 +628,9 @@ void _doBkProcesses() _updateWindows(); 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_timed_events(); }