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

Function CleanupGeneration

src/genworld.cpp:81–93  ·  view source on GitHub ↗

* Generation is done; show windows again and delete the progress window. */

Source from the content-addressed store, hash-verified

79 * Generation is done; show windows again and delete the progress window.
80 */
81static void CleanupGeneration()
82{
83 _generating_world = false;
84
85 SetMouseCursorBusy(false);
86 SetModalProgress(false);
87 GenWorldInfo::proc = nullptr;
88 GenWorldInfo::abortp = nullptr;
89
90 CloseWindowByClass(WC_MODAL_PROGRESS);
91 ShowFirstError();
92 MarkWholeScreenDirty();
93}
94
95/**
96 * The internal, real, generate function.

Callers 1

_GenerateWorldFunction · 0.85

Calls 5

SetMouseCursorBusyFunction · 0.85
SetModalProgressFunction · 0.85
CloseWindowByClassFunction · 0.85
ShowFirstErrorFunction · 0.85
MarkWholeScreenDirtyFunction · 0.85

Tested by

no test coverage detected