diff --git a/source/core/gameconfigfile.cpp b/source/core/gameconfigfile.cpp index f34e9076a..582508017 100644 --- a/source/core/gameconfigfile.cpp +++ b/source/core/gameconfigfile.cpp @@ -45,7 +45,7 @@ #include "gamecontrol.h" #include "version.h" -#define LASTRUNVERSION "1" +#define LASTRUNVERSION "2" #if !defined _MSC_VER && !defined __APPLE__ #include "i_system.h" // for SHARE_DIR @@ -253,7 +253,17 @@ void FGameConfigFile::DoGlobalSetup () const char *lastver = GetValueForKey ("Version"); if (lastver != NULL) { - //double last = atof (lastver); + double last = atof (lastver); + if (last < 2) + { + auto var = FindCVar("mod_dumb_mastervolume", NULL); + if (var != NULL) + { + UCVarValue v = var->GetGenericRep(CVAR_Float); + v.Float /= 4.f; + if (v.Float < 1.f) v.Float = 1.f; + } + } } } } diff --git a/wadsrc/static/menudef.txt b/wadsrc/static/menudef.txt index ef0f905b0..35e2a9cb1 100644 --- a/wadsrc/static/menudef.txt +++ b/wadsrc/static/menudef.txt @@ -1400,7 +1400,7 @@ OptionValue ModVolumeRamps OptionMenu ModReplayerOptions protected { Title "$MODMNU_TITLE" - Slider "$MODMNU_MASTERVOLUME", "mod_dumb_mastervolume", 1, 16, 0.5, 1 + Slider "$MODMNU_MASTERVOLUME", "mod_dumb_mastervolume", 0.25, 4, 0.1, 1 Option "$ADVSNDMNU_SAMPLERATE", "mod_samplerate", "SampleRates2" Option "$MODMNU_QUALITY", "mod_interp", "ModQuality" Option "$MODMNU_VOLUMERAMPING", "mod_volramp", "ModVolumeRamps"