From a4be58726030ac91cedb9e7ec4f24da10b8dda44 Mon Sep 17 00:00:00 2001 From: Space V <40030799+spacevx@users.noreply.github.com> Date: Thu, 12 Nov 2026 18:34:33 +0100 Subject: [PATCH] Remove InterpolatedVar WrapRange modulo workaround --- Game.Client/InterpolatedVar.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Game.Client/InterpolatedVar.cs b/Game.Client/InterpolatedVar.cs index b307cd013..c0c3cfdd3 100644 --- a/Game.Client/InterpolatedVar.cs +++ b/Game.Client/InterpolatedVar.cs @@ -162,7 +162,7 @@ public void Truncate(int newLength) { } private int WrapRange(int i) { - return MathLib.Modulo(i, maxElement); // TODO: Why does -1 get passed here sometimes. We shouldn't have to change this to accomodate. + return (i >= maxElement) ? (i - maxElement) : i; } }