mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(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
|
||||
* @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;
|
||||
|
@ -31,7 +31,7 @@ void *VehicleFromPos(TileIndex tile, void *data, VehicleFromPosProc *proc);
|
||||
void *VehicleFromPosXY(int x, int y, void *data, VehicleFromPosProc *proc);
|
||||
void CallVehicleTicks();
|
||||
Vehicle *FindVehicleOnTileZ(TileIndex tile, byte z);
|
||||
uint8 CalcPercentVehicleFilled(Vehicle *v, StringID *color);
|
||||
uint8 CalcPercentVehicleFilled(const Vehicle *v, StringID *color);
|
||||
|
||||
void InitializeTrains();
|
||||
byte VehicleRandomBits();
|
||||
|
Loading…
Reference in New Issue
Block a user