removed static carp from ScreenShaker

This commit is contained in:
Chris Forbes
2010-02-27 22:16:55 +13:00
parent 220e66dd55
commit d297c58610
2 changed files with 26 additions and 8 deletions

View File

@@ -94,7 +94,7 @@ namespace OpenRA.Traits
{
if (e.DamageState == DamageState.Dead)
{
ScreenShaker.RegisterShakeEffect(10, self.CenterLocation, 1);
self.World.WorldActor.traits.Get<ScreenShaker>().AddEffect(10, self.CenterLocation, 1);
Sound.Play("kaboom22.aud");
}
}