* Add news item for when a station changes which cargoes it accepts. * @param st Station of cargo change. * @param cargoes Bit mask of cargo types to list. * @param reject True iff the station rejects the cargo types. */
| 518 | * @param reject True iff the station rejects the cargo types. |
| 519 | */ |
| 520 | static void ShowRejectOrAcceptNews(const Station *st, CargoTypes cargoes, bool reject) |
| 521 | { |
| 522 | StringID msg = reject ? STR_NEWS_STATION_NO_LONGER_ACCEPTS_CARGO_LIST : STR_NEWS_STATION_NOW_ACCEPTS_CARGO_LIST; |
| 523 | AddNewsItem(GetEncodedString(msg, st->index, cargoes), NewsType::Acceptance, NewsStyle::Small, NewsFlag::InColour, st->index); |
| 524 | } |
| 525 | |
| 526 | /** |
| 527 | * Get the cargo types being produced around the tile (in a rectangle). |
no test coverage detected