equal
deleted
inserted
replaced
83 void ResetMusic(); |
83 void ResetMusic(); |
84 |
84 |
85 extern void SetDifficultyLevel(int mode, GameOptions *gm_opt); |
85 extern void SetDifficultyLevel(int mode, GameOptions *gm_opt); |
86 extern Player* DoStartupNewPlayer(bool is_ai); |
86 extern Player* DoStartupNewPlayer(bool is_ai); |
87 extern void ShowOSErrorBox(const char *buf); |
87 extern void ShowOSErrorBox(const char *buf); |
|
88 extern void SetDefaultRailGui(); |
88 |
89 |
89 const char *_default_blitter = "8bpp-optimized"; |
90 const char *_default_blitter = "8bpp-optimized"; |
90 |
91 |
91 /* TODO: usrerror() for errors which are not of an internal nature but |
92 /* TODO: usrerror() for errors which are not of an internal nature but |
92 * caused by the user, i.e. missing files or fatal configuration errors. |
93 * caused by the user, i.e. missing files or fatal configuration errors. |
690 SetLocalPlayer(PLAYER_FIRST); |
691 SetLocalPlayer(PLAYER_FIRST); |
691 _current_player = _local_player; |
692 _current_player = _local_player; |
692 DoCommandP(0, (_patches.autorenew << 15 ) | (_patches.autorenew_months << 16) | 4, _patches.autorenew_money, NULL, CMD_SET_AUTOREPLACE); |
693 DoCommandP(0, (_patches.autorenew << 15 ) | (_patches.autorenew_months << 16) | 4, _patches.autorenew_money, NULL, CMD_SET_AUTOREPLACE); |
693 |
694 |
694 SettingsDisableElrail(_patches.disable_elrails); |
695 SettingsDisableElrail(_patches.disable_elrails); |
|
696 SetDefaultRailGui(); |
695 |
697 |
696 MarkWholeScreenDirty(); |
698 MarkWholeScreenDirty(); |
697 } |
699 } |
698 |
700 |
699 static void MakeNewGame(bool from_heightmap) |
701 static void MakeNewGame(bool from_heightmap) |
1856 /* from version 38 we have optional elrails, since we cannot know the |
1858 /* from version 38 we have optional elrails, since we cannot know the |
1857 * preference of a user, let elrails enabled; it can be disabled manually */ |
1859 * preference of a user, let elrails enabled; it can be disabled manually */ |
1858 if (CheckSavegameVersion(38)) _patches.disable_elrails = false; |
1860 if (CheckSavegameVersion(38)) _patches.disable_elrails = false; |
1859 /* do the same as when elrails were enabled/disabled manually just now */ |
1861 /* do the same as when elrails were enabled/disabled manually just now */ |
1860 SettingsDisableElrail(_patches.disable_elrails); |
1862 SettingsDisableElrail(_patches.disable_elrails); |
|
1863 SetDefaultRailGui(); |
1861 |
1864 |
1862 /* From version 53, the map array was changed for house tiles to allow |
1865 /* From version 53, the map array was changed for house tiles to allow |
1863 * space for newhouses grf features. A new byte, m7, was also added. */ |
1866 * space for newhouses grf features. A new byte, m7, was also added. */ |
1864 if (CheckSavegameVersion(53)) { |
1867 if (CheckSavegameVersion(53)) { |
1865 for (TileIndex t = 0; t < map_size; t++) { |
1868 for (TileIndex t = 0; t < map_size; t++) { |