fixed unit production bug; unit is not emitted until space is clear.

This commit is contained in:
Chris Forbes
2009-11-17 20:17:25 +13:00
parent 7711a0bf01
commit a2de047c9f
4 changed files with 40 additions and 8 deletions

View File

@@ -110,7 +110,7 @@ namespace OpenRa.Game
if (order.Player == Game.LocalPlayer)
Game.PlaySound(group == "Building"
? "conscmp1.aud" : "unitrdy1.aud", false);
if (group != "Building")
if (group != "Building" && group != "Defense")
Game.BuildUnit(order.Player, order.TargetString);
})));
break;