mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Fix game advancing too fast when game was paused/frozen.
Regression from #5848 Added braces.
This commit is contained in:
committed by
Michael Steenbeek
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;
|
||||
|
||||
Reference in New Issue
Block a user