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

Function HideActiveErrorMessage

src/error_gui.cpp:361–367  ·  view source on GitHub ↗

* Close active error message window * @return true if a window was closed. */

Source from the content-addressed store, hash-verified

359 * @return true if a window was closed.
360 */
361bool HideActiveErrorMessage()
362{
363 ErrmsgWindow *w = dynamic_cast<ErrmsgWindow *>(FindWindowById(WC_ERRMSG, 0));
364 if (w == nullptr) return false;
365 w->Close();
366 return true;
367}
368
369/**
370 * Schedule a list of errors.

Callers 1

OnHotkeyMethod · 0.85

Calls 2

FindWindowByIdFunction · 0.85
CloseMethod · 0.45

Tested by

no test coverage detected