- fixed: The video player did not check the sound CVARs.

Fixes #58
This commit is contained in:
Christoph Oelckers 2020-07-28 21:05:14 +02:00
parent 7e8688ae2d
commit b49d04fd6e

View file

@ -46,6 +46,7 @@
#include "menu.h" #include "menu.h"
#include "raze_sound.h" #include "raze_sound.h"
#include "movie/playmve.h" #include "movie/playmve.h"
#include "gamecontrol.h"
IMPLEMENT_CLASS(DScreenJob, true, false) IMPLEMENT_CLASS(DScreenJob, true, false)
@ -154,7 +155,7 @@ public:
int sound = animSnd[i].soundnum; int sound = animSnd[i].soundnum;
if (sound == -1) if (sound == -1)
soundEngine->StopAllChannels(); soundEngine->StopAllChannels();
else else if (SoundEnabled())
soundEngine->StartSound(SOURCE_None, nullptr, nullptr, CHAN_AUTO, CHANF_UI, sound, 1.f, ATTN_NONE); soundEngine->StartSound(SOURCE_None, nullptr, nullptr, CHAN_AUTO, CHANF_UI, sound, 1.f, ATTN_NONE);
} }
} }