And remove the limit on S_SetSfxVolume :V

This commit is contained in:
James R 2020-08-07 13:02:35 -07:00
parent aedc5ae7af
commit 0e0015cb44

View file

@ -1148,17 +1148,14 @@ void S_UpdateSounds(void)
void S_SetSfxVolume(INT32 volume)
{
if (volume < 0 || volume > 31)
CONS_Alert(CONS_WARNING, "sfxvolume should be between 0-31\n");
CV_SetValue(&cv_soundvolume, volume&0x1F);
CV_SetValue(&cv_soundvolume, volume);
actualsfxvolume = cv_soundvolume.value; // check for change of var
#ifdef HW3SOUND
hws_mode == HWS_DEFAULT_MODE ? I_SetSfxVolume(volume&0x1F) : HW3S_SetSfxVolume(volume&0x1F);
#else
// now hardware volume
I_SetSfxVolume(volume&0x1F);
I_SetSfxVolume(volume);
#endif
}