Convert extension in real extension

This commit is contained in:
Eduardo Cáceres
2022-05-02 13:13:15 +02:00
committed by atlimit8
parent 2677e9c013
commit b71402f64d
8 changed files with 9 additions and 9 deletions

View File

@@ -78,7 +78,7 @@ namespace OpenRA.Mods.Common.Effects
if (clockFraction != null)
{
clock = new Animation(owner.World, posterCollection);
clock.PlayFetchIndex(clockSequence, () => Exts.Clamp((int)(clockFraction() * (clock.CurrentSequence.Length - 1)), 0, clock.CurrentSequence.Length - 1));
clock.PlayFetchIndex(clockSequence, () => ((int)(clockFraction() * (clock.CurrentSequence.Length - 1))).Clamp(0, clock.CurrentSequence.Length - 1));
}
}
}