}\r
void saveCvarsVoretDecibelsSlider(entity me)\r
{\r
+ float v;\r
+\r
if not(me.cvarName)\r
return;\r
\r
cvar_set(me.cvarName, "0");\r
else\r
{\r
+ v = pow(10, me.value / 10);\r
if(me.cvarName == "menu_bgmvolume")\r
- cvar_set(me.cvarName, ftos(pow(10, me.value / 10) / 2)); // due to system settings, music volume must be twice as low\r
- else\r
- cvar_set(me.cvarName, ftos(pow(10, me.value / 10)));\r
+ v = v / 2; // due to system settings, overall music volume must be twice as low\r
+ cvar_set(me.cvarName, ftos(v));\r
}\r
}\r
\r