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

Removed debug prints from tactical AI

git-svn-id: http://svn.net-core.org/repos/t-engine4@4534 51575b47-30f0-44d4-a5cc-537603b46e54
parent ece5d799
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
--local print = function() end
local print = function() end
-- Internal functions
local checkLOS = function(sx, sy, tx, ty)
......@@ -31,7 +31,7 @@ local checkLOS = function(sx, sy, tx, ty)
end
-- Ok if we are at the end reset lx and ly for the next code
if not lx and not ly and not is_corner_blocked then lx, ly = x, y end
if lx == x and ly == y then return true, lx, ly end
return false, lx, ly
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