diff --git a/OpenRa.Game/Game.cs b/OpenRa.Game/Game.cs index e8fde823b4..6a4113ecb9 100644 --- a/OpenRa.Game/Game.cs +++ b/OpenRa.Game/Game.cs @@ -320,11 +320,6 @@ namespace OpenRa.Game toIgnore)); } - public static bool CanPlaceBuilding(BuildingInfo building, int2 xy, bool adjust) - { - return CanPlaceBuilding(building, xy, null, adjust); - } - public static bool IsCloseEnoughToBase(Player p, BuildingInfo bi, int2 position) { var maxDistance = bi.Adjacent + 2; /* real-ra is weird. this is 1 GAP. */ diff --git a/OpenRa.Game/PlaceBuilding.cs b/OpenRa.Game/PlaceBuilding.cs index 057e68f71a..2b5226db22 100644 --- a/OpenRa.Game/PlaceBuilding.cs +++ b/OpenRa.Game/PlaceBuilding.cs @@ -21,7 +21,7 @@ namespace OpenRa.Game { if( lmb ) { - if( !Game.CanPlaceBuilding( Building, xy, true ) ) + if( !Game.CanPlaceBuilding( Building, xy, null, true ) ) yield break; if (!Game.IsCloseEnoughToBase(Owner, Building, xy))