summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/base_consist.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base_consist.cpp b/src/base_consist.cpp
index c7fcdec21..200512786 100644
--- a/src/base_consist.cpp
+++ b/src/base_consist.cpp
@@ -44,4 +44,8 @@ void BaseConsist::CopyConsistPropertiesFrom(const BaseConsist *src)
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);
+ if (HasBit(src->vehicle_flags, VF_SERVINT_IS_PERCENT) != HasBit(this->vehicle_flags, VF_SERVINT_IS_PERCENT)) {
+ ToggleBit(this->vehicle_flags, VF_SERVINT_IS_PERCENT);
+ }
+ if (HasBit(src->vehicle_flags, VF_SERVINT_IS_CUSTOM)) SetBit(this->vehicle_flags, VF_SERVINT_IS_CUSTOM);
}