summaryrefslogtreecommitdiff
path: root/src/base_consist.h
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-30 11:13:12 +0100
committerErich Eckner <git@eckner.net>2018-10-30 15:28:03 +0100
commita34d095259409cf1454d9777deabbc00bcdb9407 (patch)
tree9e7c37ed33f5bd6b3c2f41cf248dcb656b2a4afa /src/base_consist.h
parent6647cb917963c4e0d6d633b7a92af78167050893 (diff)
downloadopenttd-underground-plus-others-original.tar.xz
underground patch appliedunderground-plus-others-original
Diffstat (limited to 'src/base_consist.h')
-rw-r--r--src/base_consist.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base_consist.h b/src/base_consist.h
index 3679afd35..474ab9741 100644
--- a/src/base_consist.h
+++ b/src/base_consist.h
@@ -14,6 +14,7 @@
#include "order_type.h"
#include "date_type.h"
+#include "timetable.h"
/** Various front vehicle properties that are preserved when autoreplacing, using order-backup or switching front engines within a consist. */
struct BaseConsist {
@@ -22,7 +23,11 @@ struct BaseConsist {
/* 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.
+#if WALLCLOCK_NETWORK_COMPATIBLE
Date timetable_start; ///< When the vehicle is supposed to start the timetable.
+#else
+ DateTicks timetable_start; ///< When the vehicle is supposed to start the timetable.
+#endif
uint16 service_interval; ///< The interval for (automatic) servicing; either in days or %.