From 2153965cf92ab61b0d7e095cf3c2755924fdc221 Mon Sep 17 00:00:00 2001 From: Dániel Juhász Date: Thu, 1 Dec 2016 20:15:37 +0100 Subject: Line_of_sight: Improve using VoxelLineIterator This commit rewrites line_of_sight with VoxelLineIterator. Stepsize is no longer needed, the results will be always accurate. --- src/script/lua_api/l_env.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/lua_api/l_env.h') diff --git a/src/script/lua_api/l_env.h b/src/script/lua_api/l_env.h index 6cfdc0f6d..1314456f8 100644 --- a/src/script/lua_api/l_env.h +++ b/src/script/lua_api/l_env.h @@ -156,7 +156,7 @@ private: // spawn_tree(pos, treedef) static int l_spawn_tree(lua_State *L); - // line_of_sight(pos1, pos2, stepsize) -> true/false + // line_of_sight(pos1, pos2) -> true/false static int l_line_of_sight(lua_State *L); // raycast(pos1, pos2, objects, liquids) -> Raycast -- cgit v1.2.3