Fix sound setting not being applied after game restart
This commit is contained in:
1 parent
c99ef8b5b1
commit
4fc8341cb5
1 file changed
+5
-5
+5
-5
@@ -582,7 +582,7 @@ void S_StartSoundAtVolume(const void *origin_p, sfxenum_t sfx_id, INT32 volume)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
recdist = thisdist;
|
||||
i = j;
|
||||
}
|
||||
@@ -1862,20 +1862,20 @@ void S_ResumeAudio(void)
|
||||
|
||||
void S_DisableSound(void)
|
||||
{
|
||||
if (sound_started && !sound_disabled)
|
||||
if (sound_started && !sound_disabled)
|
||||
{
|
||||
sound_disabled = true;
|
||||
S_StopSounds();
|
||||
}
|
||||
sound_disabled = true;
|
||||
}
|
||||
|
||||
void S_EnableSound(void)
|
||||
{
|
||||
if (sound_started && sound_disabled)
|
||||
if (sound_started && sound_disabled)
|
||||
{
|
||||
sound_disabled = false;
|
||||
S_InitSfxChannels(cv_soundvolume.value);
|
||||
}
|
||||
sound_disabled = false;
|
||||
}
|
||||
|
||||
void S_SetMusicVolume(INT32 digvolume, INT32 seqvolume)
|
||||
|
||||
Reference in new issue
Block a user