Fixed typo in HackAI building placement code

This commit is contained in:
Cr0s
2014-07-11 05:44:45 +04:00
parent efeba3ec4f
commit 0f363d4c0f

View File

@@ -296,7 +296,7 @@ namespace OpenRA.Mods.RA.AI
// Sort by distance to target if we have one // Sort by distance to target if we have one
if (center != target) if (center != target)
cells = cells.OrderBy(c => (center - target).LengthSquared); cells = cells.OrderBy(c => (c - target).LengthSquared);
else else
cells = cells.Shuffle(random); cells = cells.Shuffle(random);