mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- adapt to changed value range of module master volume in ZMusic.
The default was far too quiet and had to be increased to let the player have comparable output to the rest of the music system.
This commit is contained in:
parent
8ae5d0b30e
commit
aa789c7605
2 changed files with 13 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue