'naval unit lost' sound

This commit is contained in:
Chris Forbes
2010-01-17 10:55:58 +13:00
parent c944b5fb9b
commit 03a677a41e

View File

@@ -24,7 +24,8 @@ namespace OpenRa.Traits
{
if (e.DamageState == DamageState.Dead)
if (self.Owner == Game.LocalPlayer)
Sound.Play("unitlst1.aud");
Sound.Play(self.Info.Traits.Get<OwnedActorInfo>().WaterBound
? "navylst1.aud" : "unitlst1.aud");
}
}
}