Skip to content
Snippets Groups Projects
Commit 42fb1ba6 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Set oerkki1 to not be drawn in completely dark

parent 041b5e54
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment