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

ok it has come to that ..

git-svn-id: http://svn.net-core.org/repos/t-engine4@5804 51575b47-30f0-44d4-a5cc-537603b46e54
parent ecc65504
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ newAI("move_world_hostile", function(self)
if tx and ty then
if (tx == self.x and ty == self.y) or rng.percent(10) then self.ai_state.wander_x, self.ai_state.wander_y = nil, nil return true end
self:moveDirection(tx, ty)
pcall(self.moveDirection, self, tx, ty)
end
return true
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