RenderUnitTurreted ported

This commit is contained in:
Chris Forbes
2010-01-11 18:49:28 +13:00
parent 4b19f1dfe5
commit b94e5441dc
5 changed files with 20 additions and 14 deletions

View File

@@ -15,8 +15,7 @@ namespace OpenRa.Game.Effects
public Corpse(Actor fromActor, int death)
{
var info = fromActor.Info.Traits.WithInterface<RenderSimpleInfo>().First();
anim = new Animation(info.Image ?? fromActor.Info.Name);
anim = new Animation(fromActor.traits.WithInterface<RenderSimple>().FirstOrDefault().GetImage(fromActor));
anim.PlayThen("die{0}".F(death + 1),
() => Game.world.AddFrameEndTask(w => w.Remove(this)));