* Load the introduction game. * @param load_newgrfs Whether to load the NewGRFs or not. */
| 323 | * @param load_newgrfs Whether to load the NewGRFs or not. |
| 324 | */ |
| 325 | static void LoadIntroGame(bool load_newgrfs = true) |
| 326 | { |
| 327 | _game_mode = GM_MENU; |
| 328 | |
| 329 | if (load_newgrfs) ResetGRFConfig(false); |
| 330 | |
| 331 | /* Setup main window */ |
| 332 | ResetWindowSystem(); |
| 333 | SetupColoursAndInitialWindow(); |
| 334 | |
| 335 | /* Load the default opening screen savegame */ |
| 336 | if (SaveOrLoad("opntitle.dat", SLO_LOAD, DFT_GAME_FILE, BASESET_DIR) != SL_OK) { |
| 337 | GenerateWorld(GWM_EMPTY, 64, 64); // if failed loading, make empty world. |
| 338 | SetLocalCompany(COMPANY_SPECTATOR); |
| 339 | } else { |
| 340 | SetLocalCompany(CompanyID::Begin()); |
| 341 | } |
| 342 | |
| 343 | FixTitleGameZoom(); |
| 344 | _pause_mode = {}; |
| 345 | _cursor.fix_at = false; |
| 346 | |
| 347 | CheckForMissingGlyphs(); |
| 348 | |
| 349 | MusicLoop(); // ensure music is correct |
| 350 | } |
| 351 | |
| 352 | void MakeNewgameSettingsLive() |
| 353 | { |
no test coverage detected