Fix game advancing too fast when game was paused/frozen.

Regression from #5848
Added braces.
This commit is contained in:
ZehM4tt 2017-07-11 15:48:25 +02:00 committed by Michael Steenbeek
parent a2545d7050
commit 250a66c45f
1 changed files with 6 additions and 1 deletions

View File

@ -396,6 +396,10 @@ namespace OpenRCT2
}
uint32 elapsed = currentTick - _lastTick;
if (elapsed > UPDATE_TIME_MS)
{
elapsed = UPDATE_TIME_MS;
}
_lastTick = currentTick;
_accumulator += elapsed;
@ -430,9 +434,10 @@ namespace OpenRCT2
}
uint32 elapsed = currentTick - _lastTick;
if (elapsed > UPDATE_TIME_MS)
{
elapsed = UPDATE_TIME_MS;
}
_lastTick = currentTick;
_accumulator += elapsed;