summaryrefslogtreecommitdiff
path: root/src/clientobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/clientobject.cpp')
-rw-r--r--src/clientobject.cpp8
1 files changed, 8 insertions, 0 deletions
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);