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

Function DeleteAllMessages

src/window.cpp:3371–3377  ·  view source on GitHub ↗

* Delete all messages and close their corresponding window (if any). */

Source from the content-addressed store, hash-verified

3369 * Delete all messages and close their corresponding window (if any).
3370 */
3371void DeleteAllMessages()
3372{
3373 InitNewsItemStructs();
3374 InvalidateWindowData(WC_STATUS_BAR, 0, SBI_NEWS_DELETED); // invalidate the statusbar
3375 InvalidateWindowData(WC_MESSAGE_HISTORY, 0); // invalidate the message history
3376 CloseWindowById(WC_NEWS_WINDOW, 0); // close newspaper or general message window if shown
3377}
3378
3379/**
3380 * Close all windows that are used for construction of vehicle etc.

Callers 2

MenuClickNewspaperFunction · 0.85
OnHotkeyMethod · 0.85

Calls 3

InitNewsItemStructsFunction · 0.85
CloseWindowByIdFunction · 0.85
InvalidateWindowDataFunction · 0.70

Tested by

no test coverage detected