From d86a1f15a2cfb1efabc794028690213729b8c4b6 Mon Sep 17 00:00:00 2001 From: Sevenfm Date: Sat, 24 Apr 2021 13:41:09 +0000 Subject: [PATCH] No sector ambients in cutscenes. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8971 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- TileEngine/Ambient Control.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/TileEngine/Ambient Control.cpp b/TileEngine/Ambient Control.cpp index 6f8ca2fee..3014ca3ac 100644 --- a/TileEngine/Ambient Control.cpp +++ b/TileEngine/Ambient Control.cpp @@ -427,6 +427,7 @@ void StartFireAmbient(void) } #define MAX_SSA_SOUNDS 10 +extern BOOLEAN AreInMeanwhile(); void SetSSA(void) { @@ -474,6 +475,12 @@ void SetSSA(void) return; } + // no ambients in cutscenes + if(AreInMeanwhile()) + { + return; + } + // Determine what time of day we are in ( day/night) if (gubEnvLightValue >= LIGHT_DUSK_CUTOFF) {