mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r13087) -Codechange: Constify CalcPercentVehicleFilled() (michi_cc)
This commit is contained in:
parent
f64c4fc4fb
commit
6bfd695002
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue