From 42fb1ba676de762b033b943c4a2d82db6229d245 Mon Sep 17 00:00:00 2001
From: Perttu Ahola <celeron55@gmail.com>
Date: Mon, 25 Apr 2011 11:55:40 +0300
Subject: [PATCH] Set oerkki1 to not be drawn in completely dark

---
 src/clientobject.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

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);
-- 
GitLab