Update TickManager.cs

This commit is contained in:
The Doctor
2020-06-03 08:59:36 +01:00
committed by GitHub
parent 9b7d734ede
commit 22ed0539fa

View File

@ -57,11 +57,11 @@ namespace TickManager
/// <returns>Whether the application should process the next tick or not</returns> /// <returns>Whether the application should process the next tick or not</returns>
public bool CanTick() public bool CanTick()
{ {
double internalMspt = tc.Tick(); double tickTime = tc.Tick();
bool canTick = internalMspt > msptInternal; bool canTick = tickTime > msptInternal;
if (canTick) if (canTick)
{ {
MSPT = internalMspt; MSPT = tickTime;
tc.Reset(); tc.Reset();
} }
return canTick; return canTick;