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

Function AbortGeneratingWorldCallback

src/genworld_gui.cpp:1369–1376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1367
1368
1369static void AbortGeneratingWorldCallback(Window *, bool confirmed)
1370{
1371 if (confirmed) {
1372 AbortGeneratingWorld();
1373 } else if (HasModalProgress() && !IsGeneratingWorldAborted()) {
1374 SetMouseCursor(SPR_CURSOR_ZZZ, PAL_NONE);
1375 }
1376}
1377
1378struct GenerateProgressWindow : public Window {
1379

Callers

nothing calls this directly

Calls 4

AbortGeneratingWorldFunction · 0.85
HasModalProgressFunction · 0.85
IsGeneratingWorldAbortedFunction · 0.85
SetMouseCursorFunction · 0.85

Tested by

no test coverage detected