Don't see through nodes without noclip privileges
authorShadowNinja <noreply@gmail.com>
Sat, 9 Feb 2013 21:32:59 +0000 (16:32 -0500)
committerPilzAdam <PilzAdam@gmx.de>
Sun, 10 Feb 2013 11:29:46 +0000 (12:29 +0100)
src/clientmap.cpp

index 800549a3b88e0065b75011604015e5920a4e248b..0b30453b830c92beb1e0401f5d504dbd9df51810 100644 (file)
@@ -864,7 +864,7 @@ void ClientMap::renderPostFx()
        // - If the player is in liquid, draw a semi-transparent overlay.
        const ContentFeatures& features = nodemgr->get(n);
        video::SColor post_effect_color = features.post_effect_color;
-       if(features.solidness == 2 && g_settings->getBool("free_move") == false)
+       if(features.solidness == 2 && !(g_settings->getBool("noclip") && m_gamedef->checkLocalPrivilege("noclip")))
        {
                post_effect_color = video::SColor(255, 0, 0, 0);
        }