projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
041b5e5
)
Set oerkki1 to not be drawn in completely dark
author
Perttu Ahola
<celeron55@gmail.com>
Mon, 25 Apr 2011 08:55:40 +0000
(11:55 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Mon, 25 Apr 2011 08:55:40 +0000
(11:55 +0300)
src/clientobject.cpp
patch
|
blob
|
history
diff --git
a/src/clientobject.cpp
b/src/clientobject.cpp
index f7e6e051d30624813f3c1ed94c3c40aff164eb83..9e4bf757ccda11553a18813cb0ab7b87f1aa9db0 100644
(file)
--- 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);