summaryrefslogtreecommitdiff
path: root/vehicle.h
diff options
context:
space:
mode:
authorhackykid <hackykid@openttd.org>2005-06-06 22:44:11 +0000
committerhackykid <hackykid@openttd.org>2005-06-06 22:44:11 +0000
commit6d78b700757fd7765363754195645c6f02cfba55 (patch)
tree105b039e5d3807e6c220132364ed2547386be6d7 /vehicle.h
parent4184611d3a43d046f341858b97c5fb2c1783b58c (diff)
downloadopenttd-6d78b700757fd7765363754195645c6f02cfba55.tar.xz
(svn r2428) - Feature: [newgrf] Implement shorter train vehicles (Therax), and the callback that goes with it.
- Codechange: Remove some magic numbers (PALETTE_CRASH)
Diffstat (limited to 'vehicle.h')
-rw-r--r--vehicle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vehicle.h b/vehicle.h
index 498cae52e..cee8a2450 100644
--- a/vehicle.h
+++ b/vehicle.h
@@ -53,6 +53,7 @@ typedef struct VehicleRail {
// cached values, recalculated on load and each time a vehicle is added to/removed from the consist.
uint16 cached_max_speed; // max speed of the consist. (minimum of the max speed of all vehicles in the consist)
uint32 cached_power; // total power of the consist.
+ uint8 cached_veh_length; // length of this vehicle in units of 1/8 of normal length, cached because this can be set by a callback
// cached values, recalculated when the cargo on a train changes (in addition to the conditions above)
uint16 cached_weight; // total weight of the consist.
uint16 cached_veh_weight; // weight of the vehicle.