mirror of https://github.com/OpenTTD/OpenTTD
Fix 2b80812922: Map size column in server list may be too wide. (#14094)
Incorrect change from SetDParamMaxValue to GetParamMaxValue.pull/14097/head
parent
2087bca87d
commit
87b5b0ffa3
|
@ -502,7 +502,7 @@ public:
|
||||||
|
|
||||||
case WID_NG_MAPSIZE: {
|
case WID_NG_MAPSIZE: {
|
||||||
size.width += 2 * Window::SortButtonWidth(); // Make space for the arrow
|
size.width += 2 * Window::SortButtonWidth(); // Make space for the arrow
|
||||||
auto max_map_size = GetParamMaxValue(0, MAX_MAP_SIZE);
|
auto max_map_size = GetParamMaxValue(MAX_MAP_SIZE);
|
||||||
size = maxdim(size, GetStringBoundingBox(GetString(STR_NETWORK_SERVER_LIST_MAP_SIZE_SHORT, max_map_size, max_map_size)));
|
size = maxdim(size, GetStringBoundingBox(GetString(STR_NETWORK_SERVER_LIST_MAP_SIZE_SHORT, max_map_size, max_map_size)));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue