some fixes to shake code

This commit is contained in:
Chris Forbes
2010-02-27 19:40:57 +13:00
parent 5db5829bb6
commit 5dc240d390
2 changed files with 19 additions and 24 deletions

View File

@@ -94,7 +94,7 @@ namespace OpenRa.Traits
{
if (e.DamageState == DamageState.Dead)
{
ScreenShaker.RegisterShakeEffect(10, self.Location.ToFloat2()*new float2(24, 24), 3);
ScreenShaker.RegisterShakeEffect(10, self.CenterLocation, 1);
Sound.Play("kaboom22.aud");
}
}