diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-11 16:17:03 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-11 16:17:03 +0000 |
commit | 729066e407731ca323a9b368b108c100c37044e3 (patch) | |
tree | 200e057011df0475fd5c514b242f7105fc989644 /vehicle.h | |
parent | aa4f2d2db2e69a62914391d6e6f497302dc47391 (diff) | |
download | openttd-729066e407731ca323a9b368b108c100c37044e3.tar.xz |
(svn r2294) - CodeChange: check the service interval settings when changing of all vehicle-types. To simplify things introduce GetServiceIntervalClamped() that returns the same or clamped value of the new service interval. There were some inconsistencies in the gui files so I had to change those, and const correctness kicked in, so it's a bit messy at certain points.
Diffstat (limited to 'vehicle.h')
-rw-r--r-- | vehicle.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -271,9 +271,9 @@ void AddRearEngineToMultiheadedTrain(Vehicle *v, Vehicle *u, bool building) ; /* train_cmd.h */ int GetTrainImage(const Vehicle *v, byte direction); -int GetAircraftImage(Vehicle *v, byte direction); -int GetRoadVehImage(Vehicle *v, byte direction); -int GetShipImage(Vehicle *v, byte direction); +int GetAircraftImage(const Vehicle *v, byte direction); +int GetRoadVehImage(const Vehicle *v, byte direction); +int GetShipImage(const Vehicle *v, byte direction); Vehicle *CreateEffectVehicle(int x, int y, int z, EffectVehicle type); Vehicle *CreateEffectVehicleAbove(int x, int y, int z, EffectVehicle type); @@ -307,7 +307,7 @@ UnitID GetFreeUnitNumber(byte type); int LoadUnloadVehicle(Vehicle *v); void UpdateTrainAcceleration(Vehicle *v); -int32 GetTrainRunningCost(Vehicle *v); +int32 GetTrainRunningCost(const Vehicle *v); int CheckTrainStoppedInDepot(const Vehicle *v); |