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

Negative HP creatures should correctly die

git-svn-id: http://svn.net-core.org/repos/t-engine4@3311 51575b47-30f0-44d4-a5cc-537603b46e54
parent 15108267
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ end
-- @param cache if true it will use the cache given by the map, for the map actor. It can be used for other actors is they have the same block settings
function _M:computeFOV(radius, block, apply, force, no_store, cache)
-- If we did not move, do not update
if not force and self.fov_last_x == self.x and self.fov_last_y == self.y and self.fov_computed then return end
if not self.x or not self.y or (not force and self.fov_last_x == self.x and self.fov_last_y == self.y and self.fov_computed) then return end
radius = radius or 20
block = block or "block_sight"
......
......@@ -1231,7 +1231,7 @@ function _M:resolveSource()
end
function _M:die(src)
if self.dead then return true end
if self.dead then self:disappear(src) return true end
engine.interface.ActorLife.die(self, src)
......
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