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:
Bob
2010-01-26 12:43:23 +13:00
parent c979372d27
commit f3f8fdef90
17 changed files with 42 additions and 53 deletions

View File

@@ -27,8 +27,7 @@ namespace OpenRa.Traits
Owner.World.AddFrameEndTask(w =>
{
if (Owner == Owner.World.LocalPlayer)
Sound.Play("satlnch1.aud");
Sound.PlayToPlayer(Owner, "satlnch1.aud");
w.Add(new SatelliteLaunch(launchSite));
w.Add(new DelayedAction((Info as GpsPowerInfo).RevealDelay * 25,