From a122ba0ef4af865d225adbe22a55b8001af04c61 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sun, 6 Jan 2019 10:24:44 +0100 Subject: Fix various bugs (Anticheat, Lua helpers) (#8013) * Fix various bugs (Anticheat, Lua helpers) Anticheat: Use camera position instead of player position for shoot line calculations Lua helpers: Increase 'i' to not overwrite earlier added table values * Remove lag compensation * * 1.5 for larger selection boxes --- src/script/lua_api/l_mapgen.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/script/lua_api/l_mapgen.cpp') diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp index b8e52bd49..92ed4377e 100644 --- a/src/script/lua_api/l_mapgen.cpp +++ b/src/script/lua_api/l_mapgen.cpp @@ -1042,8 +1042,7 @@ int ModApiMapgen::l_get_gen_notify(lua_State *L) int i = 1; for (u32 gen_notify_on_deco_id : emerge->gen_notify_on_deco_ids) { lua_pushnumber(L, gen_notify_on_deco_id); - lua_rawseti(L, -2, i); - i++; + lua_rawseti(L, -2, i++); } return 2; } -- cgit v1.2.3