mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix game advancing too fast when game was paused/frozen.
Regression from #5848 Added braces.
This commit is contained in:
parent
a2545d7050
commit
250a66c45f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue