Apply 1 suggestion(s) to 1 file(s)

This commit is contained in:
Michał Osiński 2023-01-03 12:09:37 +00:00 committed by LubieKakao1212
parent df046e3303
commit 57bc81065e

View File

@ -61,7 +61,7 @@ namespace NEG.Utils.Timing
/// <returns>Amount of warps</returns>
public int RetrieveAll(double interval, int limit = int.MaxValue)
{
int result = (int)Math.Floor(time / interval);
int result = Mathf.FloorToInt(time / interval);
result = Math.Clamp(result, 0, limit);
time -= result * interval;
return result;