vehicle.h
changeset 1922 797081e56d13
parent 1908 bc48a30aba72
child 1944 012fa5e69118
--- a/vehicle.h	Mon Jun 06 21:32:04 2005 +0000
+++ b/vehicle.h	Mon Jun 06 22:44:11 2005 +0000
@@ -53,6 +53,7 @@
 	// 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.