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

Method Close

src/error_gui.cpp:237–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 }
236
237 void Close([[maybe_unused]] int data = 0) override
238 {
239 SetRedErrorSquare(INVALID_TILE);
240 if (_window_system_initialized) ShowFirstError();
241 this->Window::Close();
242 }
243
244 /**
245 * Check whether the currently shown error message was critical or not.

Callers 6

ErrmsgWindowClass · 0.95
OnInvalidateDataMethod · 0.95
OnMouseLoopMethod · 0.95
UnshowCriticalErrorFunction · 0.45
ShowErrorMessageFunction · 0.45
HideActiveErrorMessageFunction · 0.45

Calls 2

SetRedErrorSquareFunction · 0.85
ShowFirstErrorFunction · 0.85

Tested by

no test coverage detected