validate building placement in ResolveOrder as well

This commit is contained in:
Chris Forbes
2013-05-18 15:44:16 +12:00
parent cfcccb590d
commit 96ecb7c232

View File

@@ -62,7 +62,8 @@ namespace OpenRA.Mods.RA
}
else
{
if (!self.World.CanPlaceBuilding(order.TargetString, buildingInfo, order.TargetLocation, null))
if (!self.World.CanPlaceBuilding(order.TargetString, buildingInfo, order.TargetLocation, null)
|| !buildingInfo.IsCloseEnoughToBase(self.World, order.Player, order.TargetString, order.TargetLocation))
{
return;
}