Do a forced show of a specific message */
| 1107 | |
| 1108 | /** Do a forced show of a specific message */ |
| 1109 | static void ShowNewsMessage(NewsIterator ni) |
| 1110 | { |
| 1111 | assert(!std::empty(_news)); |
| 1112 | |
| 1113 | /* Delete the news window */ |
| 1114 | CloseWindowById(WC_NEWS_WINDOW, 0); |
| 1115 | |
| 1116 | /* setup forced news item */ |
| 1117 | _forced_news = ni; |
| 1118 | |
| 1119 | if (_forced_news != std::end(_news)) { |
| 1120 | CloseWindowById(WC_NEWS_WINDOW, 0); |
| 1121 | ShowNewspaper(&*ni); |
| 1122 | } |
| 1123 | } |
| 1124 | |
| 1125 | /** |
| 1126 | * Close active news message window |
no test coverage detected