From f066991aa7bdf8c5e06f2255ea1df96e5daeac9f Mon Sep 17 00:00:00 2001 From: firefly2442 Date: Wed, 3 Jan 2018 21:17:30 -0700 Subject: found via cppcheck: remove code that will never run make definition and declaration names for parameters match change floats that were being set to bool values remove pointer that is never used --- scene/resources/environment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/resources/environment.cpp') diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp index 6216893667..b2c91f90eb 100644 --- a/scene/resources/environment.cpp +++ b/scene/resources/environment.cpp @@ -1218,7 +1218,7 @@ Environment::Environment() { ssao_radius2 = 0; ssao_intensity2 = 1; ssao_bias = 0.01; - ssao_direct_light_affect = false; + ssao_direct_light_affect = 0.0; ssao_blur = SSAO_BLUR_3x3; set_ssao_edge_sharpness(4); set_ssao_quality(SSAO_QUALITY_LOW); -- cgit v1.2.3