diff options
author | Perttu Ahola <celeron55@gmail.com> | 2010-12-18 13:10:37 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2010-12-18 13:10:37 +0200 |
commit | 15a43c5ed02130f1b1e07a0385530da197b0c846 (patch) | |
tree | 94851572e9e711dd5c5f5d6ef2e84680166de35b /src/mapnode.h | |
parent | 385dd9917fd4ced23a704f0566779d58f5a6b727 (diff) | |
download | hax-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.h | 4 |
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) |