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:
@@ -23,9 +23,8 @@ namespace OpenRa.Traits
|
||||
public void Damaged(Actor self, AttackInfo e)
|
||||
{
|
||||
if (e.DamageState == DamageState.Dead)
|
||||
if (self.Owner == self.World.LocalPlayer)
|
||||
Sound.Play(self.Info.Traits.Get<OwnedActorInfo>().WaterBound
|
||||
? "navylst1.aud" : "unitlst1.aud");
|
||||
Sound.PlayToPlayer(self.Owner,
|
||||
self.Info.Traits.Get<OwnedActorInfo>().WaterBound ? "navylst1.aud" : "unitlst1.aud");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user