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

Fix a weird worldmap bug

git-svn-id: http://svn.net-core.org/repos/t-engine4@2113 51575b47-30f0-44d4-a5cc-537603b46e54
parent f87aac2b
No related branches found
No related tags found
No related merge requests found
......@@ -101,9 +101,11 @@ newAI("move_world_hostile", function(self)
end
end end
local g = rng.table(gs)
self.ai_state.wander_x, self.ai_state.wander_y = g[1], g[2]
tx, ty = self.ai_state.wander_x, self.ai_state.wander_y
-- print("Hostile selected random wander", tx, ty)
if g then
self.ai_state.wander_x, self.ai_state.wander_y = g[1], g[2]
tx, ty = self.ai_state.wander_x, self.ai_state.wander_y
-- print("Hostile selected random wander", tx, ty)
end
end
if tx and ty then
......
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