Codechange: Disentangle news window style from news flags. (#13482)

This avoids NewsFlags being used as both bitmask and bitstuffed data.
This commit is contained in:
Peter Nelson
2025-02-07 13:10:39 +00:00
committed by GitHub
parent ccd3d3a547
commit eaa765d615
10 changed files with 42 additions and 40 deletions
+1 -1
View File
@@ -534,7 +534,7 @@ static void ShowRejectOrAcceptNews(const Station *st, CargoTypes cargoes, bool r
SetDParam(0, st->index);
SetDParam(1, cargoes);
StringID msg = reject ? STR_NEWS_STATION_NO_LONGER_ACCEPTS_CARGO_LIST : STR_NEWS_STATION_NOW_ACCEPTS_CARGO_LIST;
AddNewsItem(msg, NT_ACCEPTANCE, NF_INCOLOUR | NF_SMALL, NR_STATION, st->index);
AddNewsItem(msg, NT_ACCEPTANCE, NewsStyle::Small, NF_INCOLOUR, NR_STATION, st->index);
}
/**