(svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents

This commit is contained in:
smatz
2009-08-27 13:31:26 +00:00
parent 984efae368
commit 100ae8efcc
9 changed files with 58 additions and 36 deletions

View File

@@ -438,5 +438,5 @@
if (!IsValidVehicle(vehicle_id)) return -1;
const Vehicle *v = ::Vehicle::Get(vehicle_id);
return v->reliability * 100 >> 16;
return ::ToPercent16(v->reliability);
}