fixed bug in prev.

This commit is contained in:
Bob
2009-11-09 15:49:08 +13:00
parent 651399ed19
commit c2fef087a8

View File

@@ -70,6 +70,7 @@ namespace OpenRa.Game
Func<int2, bool> AvoidUnitsNear(int2 p, int dist)
{
return q =>
p != q &&
((p - q).LengthSquared < dist * dist) &&
(Game.UnitInfluence.GetUnitAt(q) != null);
}