merge duplication in PlaceBuildingOrderGenerator

This commit is contained in:
Chris Forbes
2010-01-02 12:37:18 +13:00
parent 802e60b847
commit 97fdedac4f

View File

@@ -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;