mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 01:42:38 +01:00
Codechange: Use only raw strings in drop down lists. (#13667)
Strings with parameters are now pre-formatted, avoiding global parameters. Helper functions still allow StringID.
This commit is contained in:
@@ -90,8 +90,7 @@ struct SetDateWindow : Window {
|
||||
|
||||
case WID_SD_YEAR:
|
||||
for (TimerGameEconomy::Year i = this->min_year; i <= this->max_year; i++) {
|
||||
SetDParam(0, i);
|
||||
list.push_back(MakeDropDownListStringItem(STR_JUST_INT, i.base()));
|
||||
list.push_back(MakeDropDownListStringItem(GetString(STR_JUST_INT, i), i.base()));
|
||||
}
|
||||
selected = this->date.year.base();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user