Fix crate paradrop animation.
This commit is contained in:
committed by
Mustafa Alperen Seki
parent
d70c86d37a
commit
71ed22a473
@@ -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) { }
|
||||
|
||||
Reference in New Issue
Block a user