merge duplication in PlaceBuildingOrderGenerator
This commit is contained in:
@@ -25,13 +25,8 @@ namespace OpenRa.Game.Orders
|
||||
|
||||
if (mi.Button == MouseButton.Left)
|
||||
{
|
||||
if (!Game.CanPlaceBuilding(Building, xy, null, true))
|
||||
{
|
||||
Sound.Play("nodeply1.aud");
|
||||
yield break;
|
||||
}
|
||||
|
||||
if (!Game.IsCloseEnoughToBase(Producer.Owner, Building, xy))
|
||||
if (!Game.CanPlaceBuilding(Building, xy, null, true)
|
||||
|| !Game.IsCloseEnoughToBase(Producer.Owner, Building, xy))
|
||||
{
|
||||
Sound.Play("nodeply1.aud");
|
||||
yield break;
|
||||
|
||||
Reference in New Issue
Block a user