Properly use the passed parameter as all other occourences.

Fixes 'disable_allwater = false' case in hwdetect.js.

This was SVN commit r17410.
This commit is contained in:
fabio 2015-12-09 11:28:24 +00:00
parent 6a73dc2e16
commit a5152c14d1

View File

@ -149,7 +149,7 @@ void SetDisableShadowPCF(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool di
void SetDisableAllWater(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled)
{
g_WaterUgly = true;
g_WaterUgly = disabled;
if (!IsOverridden("waterfancyeffects"))
g_WaterFancyEffects = !disabled;
if (!IsOverridden("waterrealdepth"))