From: Perttu Ahola Date: Mon, 25 Apr 2011 08:55:40 +0000 (+0300) Subject: Set oerkki1 to not be drawn in completely dark X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=42fb1ba676de762b033b943c4a2d82db6229d245;p=zefram%2Fminetest%2Fminetest_engine.git Set oerkki1 to not be drawn in completely dark --- diff --git a/src/clientobject.cpp b/src/clientobject.cpp index f7e6e051..9e4bf757 100644 --- a/src/clientobject.cpp +++ b/src/clientobject.cpp @@ -632,6 +632,14 @@ void Oerkki1CAO::updateLight(u8 light_at_pos) { if(m_node == NULL) return; + + if(light_at_pos <= 2) + { + m_node->setVisible(false); + return; + } + + m_node->setVisible(true); u8 li = decode_light(light_at_pos); video::SColor color(255,li,li,li);