cleanup the rubble

This commit is contained in:
Matthias Mailänder
2013-08-17 23:56:12 +02:00
parent 009f6a3f70
commit bf521518af
2 changed files with 5 additions and 5 deletions

View File

@@ -33,8 +33,8 @@ namespace OpenRA.Mods.RA.Render
var rs = self.Trait<RenderSprites>();
overlay = new Animation(rs.GetImage(self));
overlay.Play(info.Sequence);
rs.anims.Add("make_overlay_{0}".F(info.Sequence),
overlay.PlayThen(info.Sequence, () => buildComplete = false);
rs.anims.Add("make_overlay_{0}".F(info.Sequence),
new AnimationWithOffset(overlay, null, () => !buildComplete, null));
}