- restore accidentally deleted 'testmusicvol' CCMD.

This commit is contained in:
Christoph Oelckers 2021-03-12 08:48:59 +01:00
parent 3d55c76a89
commit a0cffca3bb

View file

@ -270,6 +270,22 @@ void I_SetMusicVolume (double factor)
I_SetRelativeVolume((float)factor);
}
//==========================================================================
//
// test a relative music volume
//
//==========================================================================
CCMD(testmusicvol)
{
if (argv.argc() > 1)
{
I_SetRelativeVolume((float)strtod(argv[1], nullptr));
}
else
Printf("Current relative volume is %1.2f\n", relative_volume);
}
//==========================================================================
//
// STAT music