diff options
author | frosch <frosch@openttd.org> | 2015-05-11 16:40:06 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2015-05-11 16:40:06 +0000 |
commit | 18da27ed6e4429ed82ce62fa24ea848b93eb9ec3 (patch) | |
tree | f7034fde803e49c932bb05facdf7a47c0689499f | |
parent | b9f7ca2dbd9fe6de6e735393602d69c456de6f3c (diff) | |
download | openttd-18da27ed6e4429ed82ce62fa24ea848b93eb9ec3.tar.xz |
(svn r27280) -Fix (r24998): Cloning/autoreplace/autorenew did not copy custom service intervals. (Johnnei)
-rw-r--r-- | src/base_consist.cpp | 4 |
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); } |