Correct last delta time (#18898)

If next delta time was zeroed (via setNextDeltaTimeZero) the last update time was not corrected.
This commit is contained in:
AIGRIND 2018-09-20 12:03:30 +02:00 committed by minggo
parent 6a52b3ff4a
commit a6530a5aca
1 changed files with 1 additions and 0 deletions

View File

@ -376,6 +376,7 @@ void Director::calculateDeltaTime()
{
_deltaTime = 0;
_nextDeltaTimeZero = false;
_lastUpdate = std::chrono::steady_clock::now();
}
else
{