Skip to content
Snippets Groups Projects
Commit 005a976b authored by dg's avatar dg
Browse files

Fix double-hitting projectiles when moving into them

git-svn-id: http://svn.net-core.org/repos/t-engine4@5663 51575b47-30f0-44d4-a5cc-537603b46e54
parent b1d0e5d4
No related branches found
No related tags found
No related merge requests found
......@@ -239,7 +239,7 @@ end
--- Something moved in the same spot as us, hit ?
function _M:on_move(x, y, target)
if self.project then self.src:projectDoAct(self.project.def.typ, self.project.def.tg, self.project.def.damtype, self.project.def.dam, self.project.def.particles, self.x, self.y, self.tmp_proj) end
if self.project and self.project.def.typ.line then self.src:projectDoAct(self.project.def.typ, self.project.def.tg, self.project.def.damtype, self.project.def.dam, self.project.def.particles, self.x, self.y, self.tmp_proj) end
if self.project and self.project.def.typ.stop_block then
game.level:removeEntity(self, true)
self.dead = true
......
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