Don't see through nodes without noclip privileges

master
ShadowNinja 2013-02-09 16:32:59 -05:00 committed by PilzAdam
parent 6c3829c2b5
commit 32552fede5
1 changed files with 1 additions and 1 deletions

View File

@ -864,7 +864,7 @@ void ClientMap::renderPostFx()
// - If the player is in liquid, draw a semi-transparent overlay. // - If the player is in liquid, draw a semi-transparent overlay.
const ContentFeatures& features = nodemgr->get(n); const ContentFeatures& features = nodemgr->get(n);
video::SColor post_effect_color = features.post_effect_color; 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); post_effect_color = video::SColor(255, 0, 0, 0);
} }