summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-01 22:24:18 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-01 22:24:18 +0000
commit5c237780650517d674739f7b4eecaaed1f085109 (patch)
tree4f56507443c1d41faf5bbbd4bdd1f0a0334d428a /src/vehicle_base.h
parent29812e604fea1c9a8c97e962c9958988498d9f2c (diff)
downloadopenttd-5c237780650517d674739f7b4eecaaed1f085109.tar.xz
(svn r11741) -Feature: Add support for NewGRF's train 'tilt' flag. Trains with tilt capability (specific details are per NewGRF set) will be given a 20% speed limit bonus on curves.
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r--src/vehicle_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h
index 2f28bc4fe..ad8bffd4b 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -81,6 +81,7 @@ 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.
+ bool cached_tilt; // train can tilt; feature provides a bonus in curves
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
uint16 cached_total_length; ///< Length of the whole train, valid only for first engine.