From 0e0015cb444f339a8461501e311bb410231f7f91 Mon Sep 17 00:00:00 2001 From: James R Date: Fri, 7 Aug 2020 13:02:35 -0700 Subject: [PATCH] And remove the limit on S_SetSfxVolume :V --- src/s_sound.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/s_sound.c b/src/s_sound.c index e9bd96cc4..6b810dc7a 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -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 }