mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-28 14:44:28 +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:
@@ -338,8 +338,7 @@ static DropDownList BuildMapsizeDropDown()
|
||||
DropDownList list;
|
||||
|
||||
for (uint i = MIN_MAP_SIZE_BITS; i <= MAX_MAP_SIZE_BITS; i++) {
|
||||
SetDParam(0, 1LL << i);
|
||||
list.push_back(MakeDropDownListStringItem(STR_JUST_INT, i));
|
||||
list.push_back(MakeDropDownListStringItem(GetString(STR_JUST_INT, 1ULL << i), i));
|
||||
}
|
||||
|
||||
return list;
|
||||
|
||||
Reference in New Issue
Block a user