From b49d04fd6e01ed19c590c882c8c0501d78bbe3b4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 28 Jul 2020 21:05:14 +0200 Subject: [PATCH] - fixed: The video player did not check the sound CVARs. Fixes #58 --- source/core/screenjob.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/core/screenjob.cpp b/source/core/screenjob.cpp index 3a63517e5..6f54da6a8 100644 --- a/source/core/screenjob.cpp +++ b/source/core/screenjob.cpp @@ -46,6 +46,7 @@ #include "menu.h" #include "raze_sound.h" #include "movie/playmve.h" +#include "gamecontrol.h" IMPLEMENT_CLASS(DScreenJob, true, false) @@ -154,7 +155,7 @@ public: int sound = animSnd[i].soundnum; if (sound == -1) soundEngine->StopAllChannels(); - else + else if (SoundEnabled()) soundEngine->StartSound(SOURCE_None, nullptr, nullptr, CHAN_AUTO, CHANF_UI, sound, 1.f, ATTN_NONE); } }