Register.lua: Throw error if node 'light_source' > core.LIGHT_MAX
authorparamat <mat.gregory@virginmedia.com>
Thu, 15 Sep 2016 21:40:19 +0000 (22:40 +0100)
committerparamat <mat.gregory@virginmedia.com>
Sat, 17 Sep 2016 08:33:25 +0000 (09:33 +0100)
commit3aefa5d3ceaaa9299f42cc10921dec65fa53c5e0
treebccc3be37d612d0f7c2e30aa9f3df117b7f1e4ab
parent297546af3d3b5b3a07a61ade041ad7c26e9a531d
Register.lua: Throw error if node 'light_source' > core.LIGHT_MAX

Add 'core.LIGHT_MAX = 14' to builtin/game/constants.lua with the intention
to replace misplaced 'default.LIGHT_MAX = 14' in Minetest Game.
Add comment in light.h requiring the constant be changed in both places.
Add lighting bug warning to note in lua_api.txt.
There are hundreds of mod uses of 15 which causes a lighting bug.
builtin/game/constants.lua
builtin/game/register.lua
doc/lua_api.txt
src/light.h