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:
@@ -12,11 +12,8 @@ namespace OpenRa.Traits.Activities
|
||||
{
|
||||
self.Health = 0;
|
||||
self.World.Remove( self );
|
||||
if (self.Owner == self.World.LocalPlayer)
|
||||
{
|
||||
Sound.Play("placbldg.aud");
|
||||
Sound.Play("build5.aud");
|
||||
}
|
||||
Sound.PlayToPlayer(self.Owner, "placbldg.aud");
|
||||
Sound.PlayToPlayer(self.Owner, "build5.aud");
|
||||
self.World.CreateActor( "fact", self.Location - new int2( 1, 1 ), self.Owner );
|
||||
} );
|
||||
return this;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace OpenRa.Traits.Activities
|
||||
rb.PlayCustomAnimBackwards(self, "make",
|
||||
() => self.World.AddFrameEndTask(w => DoUndeploy(w,self)));
|
||||
|
||||
Sound.Play("cashturn.aud");
|
||||
Sound.PlayToPlayer(self.Owner, "cashturn.aud");
|
||||
started = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user