mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
minecraft-style water done (but no texture animation or sound)
This commit is contained in:
parent
0fa0e0752a
commit
d44abdab17
13 changed files with 770 additions and 65 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue