summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vehicle_base.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h
index f3aeb3349..bea248538 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -481,6 +481,10 @@ public:
this->lateness_counter = src->lateness_counter;
this->timetable_start = src->timetable_start;
+ if (HasBit(src->vehicle_flags, VF_TIMETABLE_STARTED)) SetBit(this->vehicle_flags, VF_TIMETABLE_STARTED);
+ if (HasBit(src->vehicle_flags, VF_AUTOFILL_TIMETABLE)) SetBit(this->vehicle_flags, VF_AUTOFILL_TIMETABLE);
+ if (HasBit(src->vehicle_flags, VF_AUTOFILL_PRES_WAIT_TIME)) SetBit(this->vehicle_flags, VF_AUTOFILL_PRES_WAIT_TIME);
+
this->service_interval = src->service_interval;
}