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-Tag: 0.2.20110731_3~233 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=42fb1ba676de762b033b943c4a2d82db6229d245;p=oweals%2Fminetest.git Set oerkki1 to not be drawn in completely dark --- diff --git a/src/clientobject.cpp b/src/clientobject.cpp index f7e6e051d..9e4bf757c 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);