summaryrefslogtreecommitdiff
path: root/src/light.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-01-17 21:15:31 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-01-17 21:15:31 +0200
commitd44abdab17f6ad7a05ddc08d418af35e9cabddef (patch)
treee20567656ca78a53bec39228f8feba54aa54475d /src/light.h
parent0fa0e0752a28eeb43195f2288c018d5c0b24520b (diff)
downloadminetest-d44abdab17f6ad7a05ddc08d418af35e9cabddef.tar.gz
minetest-d44abdab17f6ad7a05ddc08d418af35e9cabddef.tar.bz2
minetest-d44abdab17f6ad7a05ddc08d418af35e9cabddef.zip
minecraft-style water done (but no texture animation or sound)
Diffstat (limited to 'src/light.h')
-rw-r--r--src/light.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/light.h b/src/light.h
index 269948e86..888b6da50 100644
--- a/src/light.h
+++ b/src/light.h
@@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define LIGHT_HEADER
#include "common_irrlicht.h"
+#include "debug.h"
/*
Day/night cache:
@@ -78,7 +79,7 @@ inline u8 decode_light(u8 light)
return light_decode_table[LIGHT_MAX];
if(light > LIGHT_MAX)
- throw;
+ light = LIGHT_MAX;
return light_decode_table[light];
}