mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #2947 from janisozaur/headless
Don't do uncapped FPS when running headlessly
This commit is contained in:
commit
10dff09160
|
@ -365,7 +365,7 @@ static void openrct2_loop()
|
||||||
|
|
||||||
_finished = 0;
|
_finished = 0;
|
||||||
do {
|
do {
|
||||||
if (gConfigGeneral.uncap_fps && gGameSpeed <= 4) {
|
if (gConfigGeneral.uncap_fps && gGameSpeed <= 4 && !gOpenRCT2Headless) {
|
||||||
currentTick = SDL_GetTicks();
|
currentTick = SDL_GetTicks();
|
||||||
if (uncapTick == 0) {
|
if (uncapTick == 0) {
|
||||||
// Reset sprite locations
|
// Reset sprite locations
|
||||||
|
|
Loading…
Reference in New Issue