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>
public bool CanTick()
{
double internalMspt = tc.Tick();
bool canTick = internalMspt > msptInternal;
double tickTime = tc.Tick();
bool canTick = tickTime > msptInternal;
if (canTick)
{
MSPT = internalMspt;
MSPT = tickTime;
tc.Reset();
}
return canTick;