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