Skip to content

Commit

Permalink
disallow idle animations while in the air paradropping
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Jul 1, 2014
1 parent b2954cc commit fec126d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.RA/Render/RenderInfantry.cs
Expand Up @@ -49,7 +49,7 @@ protected virtual string NormalizeInfantrySequence(Actor self, string baseSequen

protected virtual bool AllowIdleAnimation(Actor self)
{
return info.IdleAnimations.Length > 0;
return info.IdleAnimations.Length > 0 && self.CenterPosition.Z == 0; // TODO: this will need to change for heightmaps
}

public AnimationState State { get; private set; }
Expand Down

0 comments on commit fec126d

Please sign in to comment.