aboutsummaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-12-18 13:10:37 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-12-18 13:10:37 +0200
commit15a43c5ed02130f1b1e07a0385530da197b0c846 (patch)
tree94851572e9e711dd5c5f5d6ef2e84680166de35b /src/mapnode.h
parent385dd9917fd4ced23a704f0566779d58f5a6b727 (diff)
downloadhax-minetest-server-15a43c5ed02130f1b1e07a0385530da197b0c846.tar.gz
hax-minetest-server-15a43c5ed02130f1b1e07a0385530da197b0c846.zip
before adding day/night lighting
--HG-- rename : data/light.png => data/cloud.png
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index 680884bcd..731442011 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -75,6 +75,7 @@ enum Content
CONTENT_MESE,
CONTENT_MUD,
CONTENT_OCEAN,
+ CONTENT_CLOUD,
// This is set to the number of the actual values in this enum
USEFUL_CONTENT_COUNT
@@ -367,7 +368,8 @@ struct MapNode
// If not transparent, can't set light
if(light_propagates() == false)
return;
- param = a_light;
+ param &= 0xf0;
+ param |= a_light;
}
u16 getTile(v3s16 dir)