- adapt mod_dumb_mastervolume to the increased default volume in ZMusic.

This commit is contained in:
Christoph Oelckers 2021-03-14 08:40:34 +01:00
parent f0ddc063b0
commit a80775a1e8
3 changed files with 12 additions and 2 deletions

View File

@ -600,6 +600,16 @@ void FGameConfigFile::DoGlobalSetup ()
old_targets |= (old_targets & 1) ? 8 : 0;
gl_texture_hqresize_targets = old_targets;
}
if (last < 222)
{
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;
}
}
}
}
}

View File

@ -65,7 +65,7 @@ const char *GetVersionString();
// Version stored in the ini's [LastRun] section.
// Bump it if you made some configuration change that you want to
// be able to migrate in FGameConfigFile::DoGlobalSetup().
#define LASTRUNVERSION "221"
#define LASTRUNVERSION "222"
// Protocol version used in demos.
// Bump it if you change existing DEM_ commands or add new ones.

View File

@ -2052,7 +2052,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.5, 1
Option "$ADVSNDMNU_SAMPLERATE", "mod_samplerate", "SampleRates"
Option "$MODMNU_QUALITY", "mod_interp", "ModQuality"
Option "$MODMNU_VOLUMERAMPING", "mod_volramp", "ModVolumeRamps"