removing unneeded overload
This commit is contained in:
@@ -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. */
|
||||||
|
|||||||
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user