Add step console command to advance n ticks
Cherry-picked from https://github.com/citymania-org/cmclient Commit: 5ce2d21223a96934a83b8da43434c7a81f001ef0
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user