]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Set oerkki1 to not be drawn in completely dark
authorPerttu Ahola <celeron55@gmail.com>
Mon, 25 Apr 2011 08:55:40 +0000 (11:55 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 25 Apr 2011 08:55:40 +0000 (11:55 +0300)
src/clientobject.cpp

index f7e6e051d30624813f3c1ed94c3c40aff164eb83..9e4bf757ccda11553a18813cb0ab7b87f1aa9db0 100644 (file)
@@ -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);