Skip to content
Snippets Groups Projects
Commit 8e0e5ab1 authored by dg's avatar dg
Browse files

fix a bug

git-svn-id: http://svn.net-core.org/repos/t-engine4@5904 51575b47-30f0-44d4-a5cc-537603b46e54
parent 55fd75b5
No related branches found
No related tags found
No related merge requests found
......@@ -268,8 +268,8 @@ function _M:canProject(t, x, y)
return
end
if stop_x == x and stop_y == y then return true, stop_x, stop_y, stop_x, stop_y end
return false, stop_x, stop_y, stop_radius_x, stop_radius_y
local is_hit = stop_x == x and stop_y == y
return is_hit, stop_x, stop_y, stop_radius_x, stop_radius_y
end
--- Project damage to a distance using a moving projectile
......
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