Skip to content
Snippets Groups Projects
Commit 9f760cd3 authored by dg's avatar dg
Browse files

fix knockback

git-svn-id: http://svn.net-core.org/repos/t-engine4@4436 51575b47-30f0-44d4-a5cc-537603b46e54
parent 04dd6689
No related branches found
No related tags found
No related merge requests found
......@@ -1087,7 +1087,7 @@ function core.fov.line(sx, sy, tx, ty, block, start_at_end)
function(_, x, y)
return game.level.map:checkAllEntities(x, y, what)
end
return core.fov.line_base(sx, sy, tx, ty, game.level.map.w, game.level.map.h, block)
return core.fov.line_base(sx, sy, tx, ty, game.level.map.w, game.level.map.h, start_at_end, block)
end
tmps = core.fov.line_base(0, 0, 0, 0, 0, 0, function(_, x, y) end)
......
......@@ -588,6 +588,7 @@ static int lua_fov_line_init(lua_State *L)
int dest_y = luaL_checknumber(L, 4);
int w = luaL_checknumber(L, 5);
int h = luaL_checknumber(L, 6);
bool start_at_end = lua_toboolean(L, 7);
struct lua_fov fov;
fov.cache_ref = LUA_NOREF;
fov.cache = NULL;
......@@ -605,7 +606,6 @@ static int lua_fov_line_init(lua_State *L)
*/
fov.L = L;
fov.opaque_ref = luaL_ref(L, LUA_REGISTRYINDEX);
bool start_at_end = lua_toboolean(L, 8);
fov.w = w;
fov.h = h;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment