removing unneeded overload

This commit is contained in:
Chris Forbes
2009-12-05 11:41:41 +13:00
parent 7a7e0fff04
commit 0d81683e34
2 changed files with 1 additions and 6 deletions

View File

@@ -320,11 +320,6 @@ namespace OpenRa.Game
toIgnore)); 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) public static bool IsCloseEnoughToBase(Player p, BuildingInfo bi, int2 position)
{ {
var maxDistance = bi.Adjacent + 2; /* real-ra is weird. this is 1 GAP. */ var maxDistance = bi.Adjacent + 2; /* real-ra is weird. this is 1 GAP. */

View File

@@ -21,7 +21,7 @@ namespace OpenRa.Game
{ {
if( lmb ) if( lmb )
{ {
if( !Game.CanPlaceBuilding( Building, xy, true ) ) if( !Game.CanPlaceBuilding( Building, xy, null, true ) )
yield break; yield break;
if (!Game.IsCloseEnoughToBase(Owner, Building, xy)) if (!Game.IsCloseEnoughToBase(Owner, Building, xy))