summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-10 23:21:46 +0000
committerrubidium <rubidium@openttd.org>2009-01-10 23:21:46 +0000
commit9f74d89c580d67e8bf1784f03f2e9310f0a7e1d2 (patch)
treee8b4458238386c62adef3c1e91436b2e096f1c56
parent3a7c62022dc7dc9d88a028373d62a21e72634d22 (diff)
downloadopenttd-9f74d89c580d67e8bf1784f03f2e9310f0a7e1d2.tar.xz
(svn r14986) -Doc: small error in a comment (PhilSophus)
-rw-r--r--src/timetable_cmd.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/timetable_cmd.cpp b/src/timetable_cmd.cpp
index 5364dd953..3d35ceb12 100644
--- a/src/timetable_cmd.cpp
+++ b/src/timetable_cmd.cpp
@@ -153,11 +153,13 @@ CommandCost CmdAutofillTimetable(TileIndex tile, uint32 flags, uint32 p1, uint32
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;