Fix MCV Manager glitch when restrict building area is enabled.

Fix MCV Manager glitch when restrict building area is enabled. It was checking if the location was close enough to the Base center instead of using the MCV Managers min and max ranges. This would cause it to often have no valid locations despite having a huge range.
This commit is contained in:
blackhand1001
2019-10-25 19:15:53 -04:00
committed by abcdefg30
parent ba73842747
commit 49d07e9d64

View File

@@ -206,9 +206,6 @@ namespace OpenRA.Mods.Common.Traits
if (!world.CanPlaceBuilding(cell + offset, actorInfo, bi, null))
continue;
if (distanceToBaseIsImportant && !bi.IsCloseEnoughToBase(world, player, actorInfo, cell))
continue;
return cell;
}