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

Function DeleteRenameSignWindow

src/signs_gui.cpp:601–606  ·  view source on GitHub ↗

* Close the sign window associated with the given sign. * @param sign The sign to close the window for. */

Source from the content-addressed store, hash-verified

599 * @param sign The sign to close the window for.
600 */
601void DeleteRenameSignWindow(SignID sign)
602{
603 SignWindow *w = dynamic_cast<SignWindow *>(FindWindowById(WC_QUERY_STRING, WN_QUERY_STRING_SIGN));
604
605 if (w != nullptr && w->cur_sign == sign) w->Close();
606}

Callers 1

~SignMethod · 0.85

Calls 2

FindWindowByIdFunction · 0.85
CloseMethod · 0.45

Tested by

no test coverage detected