From a5152c14d1ec6d760c72912cf65608da4fb0833d Mon Sep 17 00:00:00 2001 From: fabio Date: Wed, 9 Dec 2015 11:28:24 +0000 Subject: [PATCH] Properly use the passed parameter as all other occourences. Fixes 'disable_allwater = false' case in hwdetect.js. This was SVN commit r17410. --- source/ps/GameSetup/HWDetect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ps/GameSetup/HWDetect.cpp b/source/ps/GameSetup/HWDetect.cpp index 9474bed272..beacfc6a3e 100644 --- a/source/ps/GameSetup/HWDetect.cpp +++ b/source/ps/GameSetup/HWDetect.cpp @@ -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"))