1
0
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:
ZehM4tt
2017-07-11 15:48:25 +02:00
committed by Michael Steenbeek
parent a2545d7050
commit 250a66c45f

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;