diff --git a/Assets/Mirror/Core/SnapshotInterpolation/SnapshotInterpolation.cs b/Assets/Mirror/Core/SnapshotInterpolation/SnapshotInterpolation.cs index d36de8b2d..adf058995 100644 --- a/Assets/Mirror/Core/SnapshotInterpolation/SnapshotInterpolation.cs +++ b/Assets/Mirror/Core/SnapshotInterpolation/SnapshotInterpolation.cs @@ -8,7 +8,6 @@ // fholm: netcode streams // fakebyte: standard deviation for dynamic adjustment // ninjakicka: math & debugging -using System; using System.Collections.Generic; using System.Runtime.CompilerServices; @@ -130,7 +129,7 @@ public static double TimelineClamp( // outside of the area, we clamp. double lowerBound = targetTime - bufferTime; double upperBound = targetTime + bufferTime; - return Math.Clamp(localTimeline, lowerBound, upperBound); + return Mathd.Clamp(localTimeline, lowerBound, upperBound); } // call this for every received snapshot.