diff options
author | ShadowNinja <noreply@gmail.com> | 2013-02-09 16:32:59 -0500 |
---|---|---|
committer | PilzAdam <PilzAdam@gmx.de> | 2013-02-10 12:29:46 +0100 |
commit | 32552fede5b941332819be6e8768b6945d0dd86b (patch) | |
tree | f50dccfff708895ea444426ac8bd40b6f96d6a95 /src | |
parent | 6c3829c2b5a2f1a57fcdfef2d1f1b22f6973c627 (diff) | |
download | minetest-32552fede5b941332819be6e8768b6945d0dd86b.tar.gz minetest-32552fede5b941332819be6e8768b6945d0dd86b.tar.bz2 minetest-32552fede5b941332819be6e8768b6945d0dd86b.zip |
Don't see through nodes without noclip privileges
Diffstat (limited to 'src')
-rw-r--r-- | src/clientmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clientmap.cpp b/src/clientmap.cpp index 800549a3b..0b30453b8 100644 --- a/src/clientmap.cpp +++ b/src/clientmap.cpp @@ -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); } |