From ae128649f67150eec86781e5849eba9ec24c362a Mon Sep 17 00:00:00 2001 From: LoboEire <67418208+LoboEire@users.noreply.github.com> Date: Sat, 18 Jan 2025 19:58:15 +0100 Subject: [PATCH] Stopped looping SFX still playing on intermission screen Unless there is a level camera setup. --- CHANGELOG.md | 2 +- source_files/edge/f_interm.cc | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a991ca120..e4a0c594c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,5 +48,5 @@ Bugs fixed - PNG textures/flats did not tile - MLOOK_TURN() and MLOOK_FACE() thing.ddf actions were exactly the same. Now MLOOK_TURN() affects horizontal and MLOOK_FACE() affects vertical. - Changed FACE() thing.ddf action to behave like it's horizontal equivalent TURN(). - +- Stopped looping SFX still playing on intermission screen diff --git a/source_files/edge/f_interm.cc b/source_files/edge/f_interm.cc index bb31e2685..7cc704829 100644 --- a/source_files/edge/f_interm.cc +++ b/source_files/edge/f_interm.cc @@ -2055,6 +2055,13 @@ void IntermissionStart(void) break; } } + + // Lobo 2025: if we have a camera set up we probably don't mind still hearing level sfx, otherwise nuke 'em ;) + if (!background_camera_map_object) + { + StopLevelSoundEffects(); + DestroyAllAmbientSounds(); + } } //--- editor settings ---