(svn r13087) -Codechange: Constify CalcPercentVehicleFilled() (michi_cc)

This commit is contained in:
peter1138 2008-05-14 15:34:04 +00:00
parent f64c4fc4fb
commit 6bfd695002
2 changed files with 2 additions and 2 deletions

View File

@ -1552,7 +1552,7 @@ CommandCost SendAllVehiclesToDepot(VehicleType type, uint32 flags, bool service,
* @param color The string to show depending on if we are unloading or loading * @param color The string to show depending on if we are unloading or loading
* @return A percentage of how full the Vehicle is. * @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 count = 0;
int max = 0; int max = 0;

View File

@ -31,7 +31,7 @@ void *VehicleFromPos(TileIndex tile, void *data, VehicleFromPosProc *proc);
void *VehicleFromPosXY(int x, int y, void *data, VehicleFromPosProc *proc); void *VehicleFromPosXY(int x, int y, void *data, VehicleFromPosProc *proc);
void CallVehicleTicks(); void CallVehicleTicks();
Vehicle *FindVehicleOnTileZ(TileIndex tile, byte z); Vehicle *FindVehicleOnTileZ(TileIndex tile, byte z);
uint8 CalcPercentVehicleFilled(Vehicle *v, StringID *color); uint8 CalcPercentVehicleFilled(const Vehicle *v, StringID *color);
void InitializeTrains(); void InitializeTrains();
byte VehicleRandomBits(); byte VehicleRandomBits();