Skip to content
Snippets Groups Projects
Commit 0fcb431f authored by Nagyhal's avatar Nagyhal
Browse files

Tweak for Projectile:move to handle multiple projectiles on one square

parent f5556cba
No related branches found
No related tags found
1 merge request!304Nagy projectile fix
......@@ -89,7 +89,7 @@ function _M:move(x, y, force)
if y >= map.h then y = map.h - 1 end
if self.x and self.y then
map:remove(self.x, self.y, Map.PROJECTILE)
map:remove(self.x, self.y, Map.PROJECTILE, self)
else
-- print("[MOVE] projectile moved without a starting position", self.name, x, y)
end
......
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