fix bramble music not working because all dimensions have an ambient

This commit is contained in:
Noah Pilarski 2024-06-13 16:02:00 -04:00
parent d325efc4bd
commit ad72afb6fc

View File

@ -21,7 +21,7 @@ public class GlobalMusicControllerPatches
PlayerState.AtFlightConsole() && PlayerState.AtFlightConsole() &&
!PlayerState.IsHullBreached() && !PlayerState.IsHullBreached() &&
!__instance._playingFinalEndTimes && !__instance._playingFinalEndTimes &&
_audioDetector._activeVolumes.Count == 0; // change - don't play if in another audio volume _audioDetector._activeVolumes.Count <= 1; // change - don't play if in another audio volume other than ambient
var playing = __instance._darkBrambleSource.isPlaying && var playing = __instance._darkBrambleSource.isPlaying &&
!__instance._darkBrambleSource.IsFadingOut(); !__instance._darkBrambleSource.IsFadingOut();
if (shouldBePlaying && !playing) if (shouldBePlaying && !playing)