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

Function InitNewsItemStructs

src/news_gui.cpp:714–721  ·  view source on GitHub ↗

Initialize the news-items data structures */

Source from the content-addressed store, hash-verified

712
713/** Initialize the news-items data structures */
714void InitNewsItemStructs()
715{
716 _news.clear();
717 _forced_news = std::end(_news);
718 _current_news = std::end(_news);
719 _statusbar_news = std::end(_news);
720 NewsWindow::duration = 0;
721}
722
723/**
724 * Are we ready to show another ticker item?

Callers 2

DeleteAllMessagesFunction · 0.85
InitializeGameFunction · 0.85

Calls 2

endFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected