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