Convert ScreenShaker to world coords.

This commit is contained in:
Paul Chote
2013-07-20 14:59:01 +12:00
parent 0c35e49239
commit ddd1314613
4 changed files with 20 additions and 17 deletions

View File

@@ -29,7 +29,7 @@ namespace OpenRA.Mods.RA.Buildings
public void Killed(Actor self, AttackInfo e)
{
self.World.WorldActor.Trait<ScreenShaker>().AddEffect(Info.Intensity, self.CenterLocation.ToFloat2(), 1);
self.World.WorldActor.Trait<ScreenShaker>().AddEffect(Info.Intensity, self.CenterPosition, 1);
}
}
}