Return guardian MAI: remove unnecessary condition

We can never get to this point in the code if the unit does not have
moves.
This commit is contained in:
mattsc 2014-03-28 11:54:34 -07:00
parent a017e584f2
commit f03c6052d0

View file

@ -35,9 +35,7 @@ function ca_return_guardian:execution(ai, cfg)
end
local nh = AH.next_hop(unit, x, y)
if unit.moves~=0 then
AH.movefull_stopunit(ai, unit, nh)
end
AH.movefull_stopunit(ai, unit, nh)
end
return ca_return_guardian