don't play deploy sound to everyone

This commit is contained in:
Chris Forbes
2009-12-28 22:43:37 +13:00
parent 3081cb7eea
commit cea2091504

View File

@@ -11,8 +11,11 @@ namespace OpenRa.Game.Traits.Activities
Game.world.AddFrameEndTask( _ =>
{
Game.world.Remove( self );
Sound.Play("placbldg.aud");
Sound.Play("build5.aud");
if (self.Owner == Game.LocalPlayer)
{
Sound.Play("placbldg.aud");
Sound.Play("build5.aud");
}
Game.world.Add( new Actor( Rules.UnitInfo["fact"], self.Location - new int2( 1, 1 ), self.Owner ) );
} );
return this;