fixed unit ack sound to only happen when *issuing* the order
This commit is contained in:
@@ -22,7 +22,9 @@ namespace OpenRa.Game
|
||||
|
||||
public override void Apply( Game game, bool leftMouseButton )
|
||||
{
|
||||
if (leftMouseButton) return;
|
||||
if (leftMouseButton) return;
|
||||
if (game.LocalPlayer == Unit.Owner)
|
||||
game.PlaySound("ackno.r00", false);
|
||||
Unit.traits.Get<Traits.Mobile>().destination = Destination;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,8 +103,6 @@ namespace OpenRa.Game.Traits
|
||||
{
|
||||
if (xy != toCell)
|
||||
{
|
||||
if (game.LocalPlayer == self.Owner)
|
||||
game.PlaySound("ackno.r00", false);
|
||||
return new MoveOrder(self, xy);
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user