Fix crate paradrop animation.

This commit is contained in:
Paul Chote
2019-06-21 23:39:43 +01:00
committed by Mustafa Alperen Seki
parent d70c86d37a
commit 71ed22a473

View File

@@ -68,11 +68,15 @@ namespace OpenRA.Mods.Common.Traits.Render
void INotifyAddedToWorld.AddedToWorld(Actor self)
{
// Don't change animations while still in air
if (!self.IsAtGroundLevel())
return;
// Run in a frame end task to give Parachute a chance to set the actor position
self.World.AddFrameEndTask(w =>
{
// Don't change animations while still in air
if (!self.IsAtGroundLevel())
return;
PlaySequence();
PlaySequence();
});
}
void INotifyParachute.OnParachute(Actor self) { }