| 917 | } |
| 918 | |
| 919 | static void MakeNewEditorWorld() |
| 920 | { |
| 921 | _game_mode = GM_EDITOR; |
| 922 | /* "reload" command needs to know what mode we were in. */ |
| 923 | _file_to_saveload.SetMode(FIOS_TYPE_INVALID, SLO_INVALID); |
| 924 | |
| 925 | ResetGRFConfig(true); |
| 926 | |
| 927 | GenerateWorldSetCallback(&MakeNewEditorWorldDone); |
| 928 | GenerateWorld(GWM_EMPTY, 1 << _settings_game.game_creation.map_x, 1 << _settings_game.game_creation.map_y); |
| 929 | } |
| 930 | |
| 931 | /** |
| 932 | * Load the specified savegame but on error do different things. |
no test coverage detected