diff --git a/src/sound/music_dumb.cpp b/src/sound/music_dumb.cpp index 1e9b6d6fc..5dc100108 100644 --- a/src/sound/music_dumb.cpp +++ b/src/sound/music_dumb.cpp @@ -129,7 +129,11 @@ CVAR(Bool, mod_autochip, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG); CVAR(Int, mod_autochip_size_force, 100, CVAR_ARCHIVE|CVAR_GLOBALCONFIG); CVAR(Int, mod_autochip_size_scan, 500, CVAR_ARCHIVE|CVAR_GLOBALCONFIG); CVAR(Int, mod_autochip_scan_threshold, 12, CVAR_ARCHIVE|CVAR_GLOBALCONFIG); -CVAR(Float, mod_dumb_mastervolume, 1.f, CVAR_ARCHIVE|CVAR_GLOBALCONFIG); +CUSTOM_CVAR(Float, mod_dumb_mastervolume, 1.f, CVAR_ARCHIVE | CVAR_GLOBALCONFIG) +{ + if (self < 0.5f) self = 0.5f; + else if (self > 16.f) self = 16.f; +} // PRIVATE DATA DEFINITIONS ------------------------------------------------ diff --git a/wadsrc/static/menudef.txt b/wadsrc/static/menudef.txt index 268787a2b..02c4ce314 100644 --- a/wadsrc/static/menudef.txt +++ b/wadsrc/static/menudef.txt @@ -1663,7 +1663,7 @@ OptionMenu ModReplayerOptions Title "MODULE REPLAYER OPTIONS" Option "Replayer engine", "mod_dumb", "ModReplayers" StaticText " " - Slider "Master Volume", "mod_dumb_mastervolume", 1, 32, 1, 1 + Slider "Master Volume", "mod_dumb_mastervolume", 1, 16, 0.5, 1 Option "Sample rate", "mod_samplerate", "SampleRates", "mod_dumb" Option "Quality", "mod_interp", "ModQuality", "mod_dumb" Option "Volume ramping", "mod_volramp", "ModVolumeRamps", "mod_dumb"