MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / HandleGeneratingWorldAbortion

Function HandleGeneratingWorldAbortion

src/genworld.cpp:278–286  ·  view source on GitHub ↗

* Really handle the abortion, i.e. clean up some of the mess */

Source from the content-addressed store, hash-verified

276 * Really handle the abortion, i.e. clean up some of the mess
277 */
278void 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.

Callers 2

_GenerateWorldFunction · 0.85

Calls 1

Tested by

no test coverage detected