Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
df046e3303
commit
57bc81065e
@ -61,7 +61,7 @@ namespace NEG.Utils.Timing
|
|||||||
/// <returns>Amount of warps</returns>
|
/// <returns>Amount of warps</returns>
|
||||||
public int RetrieveAll(double interval, int limit = int.MaxValue)
|
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);
|
result = Math.Clamp(result, 0, limit);
|
||||||
time -= result * interval;
|
time -= result * interval;
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user