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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@83 51575b47-30f0-44d4-a5cc-537603b46e54
parent 08f4660f
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ newAI("target_simple", function(self)
self.ai_target.actor = nil
core.fov.calc_circle(self.x, self.y, self.sight, function(self, lx, ly)
if game.level.map:checkEntity(lx, ly, Map.TERRAIN, "block_sight") then return true end
if not self:canMove(lx, ly, true) then return true
if not self:canMove(lx, ly, true) then return true end
-- get and test the actor, if we are neutral or friendly, ignore it
local act = game.level.map(lx, ly, Map.ACTOR)
......
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