diff --git a/Game.Client/InterpolatedVar.cs b/Game.Client/InterpolatedVar.cs index b307cd01..c0c3cfdd 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; } }