1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 16:09:10 +00:00

Fix 2b80812922: Map size column in server list may be too wide. (#14094)

Incorrect change from SetDParamMaxValue to GetParamMaxValue.
This commit is contained in:
2025-04-24 21:05:31 +01:00
committed by GitHub
parent 2087bca87d
commit 87b5b0ffa3

View File

@@ -502,7 +502,7 @@ public:
case WID_NG_MAPSIZE: {
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)));
break;
}