only play 'unit lost' etc to owner

This commit is contained in:
Chris Forbes
2010-07-20 20:17:30 +12:00
parent cedcb3d84f
commit 02e4de61eb

View File

@@ -30,7 +30,8 @@ namespace OpenRA.Traits
{
var eva = self.World.WorldActor.Info.Traits.Get<EvaAlertsInfo>();
if (e.DamageState == DamageState.Dead)
Sound.PlayVoice("Lost", self);
if (self.Owner == self.World.LocalPlayer)
Sound.PlayVoice("Lost", self);
}
}
}