projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b38afc9
)
LuaVoxelManip: Update parameter index of set_lighting()
author
kwolekr
<kwolekr@minetest.net>
Thu, 21 Nov 2013 05:45:17 +0000
(
00:45
-0500)
committer
kwolekr
<kwolekr@minetest.net>
Thu, 21 Nov 2013 05:45:17 +0000
(
00:45
-0500)
src/script/lua_api/l_vmanip.cpp
patch
|
blob
|
history
diff --git
a/src/script/lua_api/l_vmanip.cpp
b/src/script/lua_api/l_vmanip.cpp
index 1e9cc350f432194f24e1f1f88245ebfb99e7e0ed..db8884e10f290e4a91d2d257b1fa815def1f9e3a 100644
(file)
--- a/
src/script/lua_api/l_vmanip.cpp
+++ b/
src/script/lua_api/l_vmanip.cpp
@@
-163,8
+163,8
@@
int LuaVoxelManip::l_set_lighting(lua_State *L)
return 0;
u8 light;
- light = (getintfield_default(L,
4
, "day", 0) & 0x0F);
- light |= (getintfield_default(L,
4
, "night", 0) & 0x0F) << 8;
+ light = (getintfield_default(L,
2
, "day", 0) & 0x0F);
+ light |= (getintfield_default(L,
2
, "night", 0) & 0x0F) << 8;
ManualMapVoxelManipulator *vm = o->vm;