* Really handle the abortion, i.e. clean up some of the mess */
| 276 | * Really handle the abortion, i.e. clean up some of the mess |
| 277 | */ |
| 278 | void HandleGeneratingWorldAbortion() |
| 279 | { |
| 280 | /* Clean up - in SE create an empty map, otherwise, go to intro menu */ |
| 281 | _switch_mode = (_game_mode == GM_EDITOR) ? SM_EDITOR : SM_MENU; |
| 282 | |
| 283 | if (GenWorldInfo::abortp != nullptr) GenWorldInfo::abortp(); |
| 284 | |
| 285 | throw AbortGenerateWorldSignal(); |
| 286 | } |
| 287 | |
| 288 | /** |
| 289 | * Generate a world. |
no test coverage detected