Mercurial > hg > openttd
diff src/timetable_cmd.cpp @ 10677:698932d19cc4 draft
(svn r14986) -Doc: small error in a comment (PhilSophus)
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 10 Jan 2009 23:21:46 +0000 (2009-01-10) |
parents | 9ceef3c92be2 |
children | a4e5b5d2837c |
line wrap: on
line diff
--- a/src/timetable_cmd.cpp +++ b/src/timetable_cmd.cpp @@ -153,11 +153,13 @@ if (flags & DC_EXEC) { if (HasBit(p2, 0)) { - /* Start autofilling the timetable, which clears all the current - * timings and clears the "timetable has started" bit. */ + /* Start autofilling the timetable, which clears the + * "timetable has started" bit. Times are not cleared anymore, but are + * overwritten when the order is reached now. */ SetBit(v->vehicle_flags, VF_AUTOFILL_TIMETABLE); ClrBit(v->vehicle_flags, VF_TIMETABLE_STARTED); + /* Overwrite waiting times only if they got longer */ if (HasBit(p2, 1)) SetBit(v->vehicle_flags, VF_AUTOFILL_PRES_WAIT_TIME); v->lateness_counter = 0;