diff options
author | smatz <smatz@openttd.org> | 2009-08-27 13:31:26 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-08-27 13:31:26 +0000 |
commit | 100ae8efcc592ec44f0cc161e0045fb84b67c45e (patch) | |
tree | 79e23872457025fcbbc5f0a92e071c53d687ec7b /src/vehicle_gui.cpp | |
parent | 984efae368da7a7a7e5090820ef31c9c3a678670 (diff) | |
download | openttd-100ae8efcc592ec44f0cc161e0045fb84b67c45e.tar.xz |
(svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 381fe01a5..f4b9eacbb 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1424,7 +1424,7 @@ struct VehicleDetailsWindow : Window { DrawString(2, this->width - 2, 35, STR_VEHICLE_INFO_PROFIT_THIS_YEAR_LAST_YEAR); /* Draw breakdown & reliability */ - SetDParam(0, v->reliability * 100 >> 16); + SetDParam(0, ToPercent16(v->reliability)); SetDParam(1, v->breakdowns_since_last_service); DrawString(2, this->width - 2, 45, STR_VEHICLE_INFO_RELIABILITY_BREAKDOWNS); |