diff options
author | frosch <frosch@openttd.org> | 2012-12-08 17:18:51 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-12-08 17:18:51 +0000 |
commit | b533523258dfd943caa307d28413693bcaa64007 (patch) | |
tree | 1236d0e560354d9b22d34269ba5ff99265a94cf6 /src/build_vehicle_gui.cpp | |
parent | 18a5ba4ad7967c537854a3061df9e600c8f55bf7 (diff) | |
download | openttd-b533523258dfd943caa307d28413693bcaa64007.tar.xz |
(svn r24801) -Codechange: Add functions to set integral DParams to suitable values for size computations.
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r-- | src/build_vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index 6415493b3..5d424676b 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -890,7 +890,7 @@ void DrawEngineList(VehicleType type, int l, int r, int y, const GUIEngineList * int count_width = 0; if (show_count) { replace_icon = GetSpriteSize(SPR_GROUP_REPLACE_ACTIVE); - SetDParam(0, 999); + SetDParamMaxDigits(0, 3); count_width = GetStringBoundingBox(STR_TINY_BLACK_COMA).width; } |