Mercurial > hg > openttd
changeset 14372:b42ffbf38c4a draft
(svn r18929) -Fix [FS#3568]: Preserve some timetable related vehicle flags during autorenew/-replace.
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 27 Jan 2010 20:07:29 +0000 |
parents | 46e80f3c8efa |
children | 6703a8ed9c0c |
files | src/vehicle_base.h |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -481,6 +481,10 @@ 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; }