mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +00:00
Fix: String parameter not set when determining width of smallmap contour labels. (#13145)
This commit is contained in:
parent
efcafe49f7
commit
2ff18a4f05
@ -1559,6 +1559,7 @@ public:
|
||||
}
|
||||
height++;
|
||||
str = tbl->legend;
|
||||
if (i == SMT_CONTOUR) SetDParam(0, tbl->height * TILE_HEIGHT_STEP);
|
||||
}
|
||||
min_width = std::max(GetStringBoundingBox(str).width, min_width);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user