From 15a43c5ed02130f1b1e07a0385530da197b0c846 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 18 Dec 2010 13:10:37 +0200 Subject: before adding day/night lighting --HG-- rename : data/light.png => data/cloud.png --- src/mapnode.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mapnode.h') 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) -- cgit v1.2.3