fixed various sound bugs

This commit is contained in:
Chris Forbes
2010-01-25 20:40:04 +13:00
parent f0ae162fb0
commit 890ff42c70
4 changed files with 23 additions and 11 deletions

View File

@@ -34,7 +34,8 @@ namespace OpenRa.Traits
if (order.OrderString == "PowerDown")
{
IsDisabled = !IsDisabled;
Sound.Play((IsDisabled) ? "bleep12.aud" : "bleep11.aud");
if (self.Owner == self.World.LocalPlayer)
Sound.Play(IsDisabled ? "bleep12.aud" : "bleep11.aud");
}
}
}