Convert extension in real extension
This commit is contained in:
committed by
atlimit8
parent
2677e9c013
commit
b71402f64d
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user