Skip to content
Snippets Groups Projects
Commit 1c801ebf authored by dg's avatar dg
Browse files

Fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@6261 51575b47-30f0-44d4-a5cc-537603b46e54
parent 53a097b0
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ end
--- Move one step to the given target if possible
-- This tries the most direct route, if not available it checks sides and always tries to get closer
function _M:moveDirection(x, y, force)
if not self.x or not self.y then return false end
if not self.x or not self.y or not x or not y then return false end
local l = line.new(self.x, self.y, x, y)
local lx, ly = l()
if lx and ly then
......
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