Fix paralax occlusion setting
authorShadowNinja <shadowninja@minetest.net>
Sat, 7 Dec 2013 03:40:04 +0000 (22:40 -0500)
committerShadowNinja <shadowninja@minetest.net>
Sat, 7 Dec 2013 03:42:09 +0000 (22:42 -0500)
src/game.cpp

index 22abe4c74737927f46315e226d5d752e32473c3c..68bd12b97b72d65b3b29e9ca11b7c5deea50d206 100644 (file)
@@ -821,7 +821,7 @@ public:
                services->setPixelShaderConstant("enableBumpmapping", &enable_bumpmapping, 1);
 
                float enable_parallax_occlusion = 0;
-               if  (g_settings->getBool("enable_parallax_occlusion"));{
+               if (g_settings->getBool("enable_parallax_occlusion")) {
                        enable_parallax_occlusion = 1;
                        float parallax_occlusion_scale = g_settings->getFloat("parallax_occlusion_scale");
                        services->setPixelShaderConstant("parallaxOcclusionScale", &parallax_occlusion_scale, 1);