summaryrefslogtreecommitdiff
path: root/src/vehicle.h
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-06-20 19:17:22 +0000
committermaedhros <maedhros@openttd.org>2007-06-20 19:17:22 +0000
commitcf0118ee63603132dc1d08d7f7e800b26e53fc97 (patch)
tree1a82d9ac3d2c0f66dac9c5f6857c4e49f057b100 /src/vehicle.h
parenta982fe2e807f80c8a6478c358b3875535c9346b4 (diff)
downloadopenttd-cf0118ee63603132dc1d08d7f7e800b26e53fc97.tar.xz
(svn r10236) -Feature: Introduce a form of timetabling for vehicles.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r--src/vehicle.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vehicle.h b/src/vehicle.h
index 549e04e11..c40017879 100644
--- a/src/vehicle.h
+++ b/src/vehicle.h
@@ -320,6 +320,10 @@ struct Vehicle {
GroupID group_id; ///< Index of group Pool array
+ /* Used for timetabling. */
+ uint32 current_order_time; ///< How many ticks have passed since this order started.
+ int32 lateness_counter; ///< How many ticks late (or early if negative) this vehicle is.
+
union {
VehicleRail rail;
VehicleAir air;