Add step console command to advance n ticks

Cherry-picked from https://github.com/citymania-org/cmclient
Commit: 5ce2d21223a96934a83b8da43434c7a81f001ef0
This commit is contained in:
dP
2020-06-05 17:11:09 +01:00
committed by Jonathan G Rennison
parent 50965bbce7
commit ca23e8abcf
7 changed files with 26 additions and 1 deletions

View File

@@ -513,6 +513,7 @@ static void LoadIntroGame(bool load_newgrfs = true)
FixTitleGameZoom();
_pause_mode = PM_UNPAUSED;
_pause_countdown = 0;
_cursor.fix_at = false;
CheckForMissingGlyphs();
@@ -1967,6 +1968,11 @@ void StateGameLoop()
}
if (_extra_aspects > 0) FlushDeferredAspectUpdates();
if (_pause_countdown > 0 && --_pause_countdown == 0) {
_pause_mode = PM_PAUSED_NORMAL;
SetWindowDirty(WC_MAIN_TOOLBAR, 0);
}
assert(IsLocalCompany());
}