Mercurial > hg > openttd
diff src/vehicle.cpp @ 9221:9a9e2d4fa821 draft
(svn r13087) -Codechange: Constify CalcPercentVehicleFilled() (michi_cc)
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Wed, 14 May 2008 15:34:04 +0000 |
parents | a7020e34c67b |
children | c8a0fa0e208a |
line wrap: on
line diff
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -1552,7 +1552,7 @@ * @param color The string to show depending on if we are unloading or loading * @return A percentage of how full the Vehicle is. */ -uint8 CalcPercentVehicleFilled(Vehicle *v, StringID *color) +uint8 CalcPercentVehicleFilled(const Vehicle *v, StringID *color) { int count = 0; int max = 0;