1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

fix bug in scriptapi line_of_sight

fix warnings for pathfinder debug traces
This commit is contained in:
sapier 2013-04-09 20:33:59 +02:00 committed by kwolekr
parent 6e4fdf37ba
commit dda2071cc0
2 changed files with 6 additions and 6 deletions

View file

@ -662,9 +662,11 @@ int EnvRef::l_line_of_sight(lua_State *L) {
v3f pos2 = checkFloatPos(L, 2);
//read step size from lua
if(lua_isnumber(L, 3))
stepsize = lua_tonumber(L, 3);
stepsize = lua_tonumber(L, 3);
return (env->line_of_sight(pos1,pos2,stepsize));
lua_pushboolean(L, env->line_of_sight(pos1,pos2,stepsize));
return 1;
}
int EnvRef::l_find_path(lua_State *L)