From d44abdab17f6ad7a05ddc08d418af35e9cabddef Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 17 Jan 2011 21:15:31 +0200 Subject: minecraft-style water done (but no texture animation or sound) --- src/light.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/light.h') 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]; } -- cgit v1.2.3