Skip to content

Commit

Permalink
Fix infantry idle animations playing immediately after creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote authored and reaperrr committed Oct 20, 2019
1 parent 8bbf43f commit 3deaf6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OpenRA.Mods.Common/Traits/Render/WithInfantryBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public void PlayStandAnimation(Actor self)
protected override void Created(Actor self)
{
rsm = self.TraitOrDefault<IRenderInfantrySequenceModifier>();
idleDelay = self.World.SharedRandom.Next(Info.MinIdleDelay, Info.MaxIdleDelay);

base.Created(self);
}
Expand Down

0 comments on commit 3deaf6c

Please sign in to comment.