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

View File

@@ -148,7 +148,7 @@ static IntervalTimer<TimerGameCalendar> _check_switch_to_euro({TimerGameCalendar
_currency_specs[_settings_game.locale.currency].to_euro != CF_ISEURO &&
TimerGameCalendar::year >= _currency_specs[_settings_game.locale.currency].to_euro) {
_settings_game.locale.currency = 2; // this is the index of euro above.
AddNewsItem(STR_NEWS_EURO_INTRODUCTION, NT_ECONOMY, NF_NORMAL);
AddNewsItem(STR_NEWS_EURO_INTRODUCTION, NT_ECONOMY, NewsStyle::Normal, {});
}
});