added Sound.PlayToPlayer. changed existing if(localPlayer) Play() idiom to use it. fixed two places that used Play where PlayToPlayer was correct (mcvUndeploy and "spyplane ready")
This commit is contained in:
@@ -34,8 +34,7 @@ namespace OpenRa.Traits
|
||||
if (order.OrderString == "PowerDown")
|
||||
{
|
||||
IsDisabled = !IsDisabled;
|
||||
if (self.Owner == self.World.LocalPlayer)
|
||||
Sound.Play(IsDisabled ? "bleep12.aud" : "bleep11.aud");
|
||||
Sound.PlayToPlayer(self.Owner, IsDisabled ? "bleep12.aud" : "bleep11.aud");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user