From c3a0c727431dc42c62c51f6a43916303fc89d857 Mon Sep 17 00:00:00 2001 From: KJeff01 Date: Fri, 29 Mar 2024 12:56:03 -0500 Subject: [PATCH] Add missing pause checks --- lib/sound/audio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sound/audio.cpp b/lib/sound/audio.cpp index 67bd8f3a7be..4bf8c9ee6f0 100644 --- a/lib/sound/audio.cpp +++ b/lib/sound/audio.cpp @@ -715,7 +715,7 @@ bool audio_PlayObjStaticTrack(SIMPLE_OBJECT *psObj, int iTrack) //~~~~~~~~~~~~~~~ // if audio not enabled return true to carry on game without audio - if (audio_Disabled()) + if (audio_Disabled() || audio_Paused()) { return false; } @@ -755,7 +755,7 @@ bool audio_PlayObjDynamicTrack(SIMPLE_OBJECT *psObj, int iTrack, AUDIO_CALLBACK //~~~~~~~~~~~~~~~ // if audio not enabled return true to carry on game without audio - if (audio_Disabled()) + if (audio_Disabled() || audio_Paused()) { return false; }