diff options
author | rubidium <rubidium@openttd.org> | 2011-03-05 21:52:45 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-03-05 21:52:45 +0000 |
commit | e34c42de32a3a7dca800a250747ec41d485f42a3 (patch) | |
tree | d94487a13a4681c0575c894277f8ed45baf22b67 /src/ground_vehicle.hpp | |
parent | 2aa14cc54bc7ab05a84d6f50ee772c6f40fd6099 (diff) | |
download | openttd-e34c42de32a3a7dca800a250747ec41d485f42a3.tar.xz |
(svn r22205) -Codechange: replace magic number with constant
Diffstat (limited to 'src/ground_vehicle.hpp')
-rw-r--r-- | src/ground_vehicle.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ground_vehicle.hpp b/src/ground_vehicle.hpp index 6beb4e8fd..941ddca15 100644 --- a/src/ground_vehicle.hpp +++ b/src/ground_vehicle.hpp @@ -42,7 +42,7 @@ struct GroundVehicleCache { /* Cached NewGRF values, recalculated on load and each time a vehicle is added to/removed from the consist. */ uint16 cached_total_length; ///< Length of the whole vehicle (valid only for the first engine). EngineID first_engine; ///< Cached EngineID of the front vehicle. INVALID_ENGINE for the front vehicle itself. - uint8 cached_veh_length; ///< Length of this vehicle in units of 1/8 of normal length. It is cached because this can be set by a callback. + uint8 cached_veh_length; ///< Length of this vehicle in units of 1/VEHICLE_LENGTH of normal length. It is cached because this can be set by a callback. /* Cached UI information. */ uint16 last_speed; ///< The last speed we did display, so we only have to redraw when this changes. |