mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
(svn r16642) -Codechange: use map size limits enum at one more place
This commit is contained in:
parent
4b3bf5667a
commit
916331328e
@ -519,7 +519,7 @@ static DropDownList *BuildMapsizeDropDown()
|
|||||||
{
|
{
|
||||||
DropDownList *list = new DropDownList();
|
DropDownList *list = new DropDownList();
|
||||||
|
|
||||||
for (uint i = 6; i <= 11; i++) {
|
for (uint i = MIN_MAP_SIZE_BITS; i <= MAX_MAP_SIZE_BITS; i++) {
|
||||||
DropDownListParamStringItem *item = new DropDownListParamStringItem(STR_JUST_INT, i, false);
|
DropDownListParamStringItem *item = new DropDownListParamStringItem(STR_JUST_INT, i, false);
|
||||||
item->SetParam(0, 1 << i);
|
item->SetParam(0, 1 << i);
|
||||||
list->push_back(item);
|
list->push_back(item);
|
||||||
|
Loading…
Reference in New Issue
Block a user