summaryrefslogtreecommitdiff
path: root/src/timetable_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-18 04:54:09 +0000
committerrubidium <rubidium@openttd.org>2008-04-18 04:54:09 +0000
commitacafc26426f7725d519815ea25d6edddc67b3fa2 (patch)
treed7125c8c858791939606b0bc9eec620bb3d141d9 /src/timetable_cmd.cpp
parent9d8fa486af824039fae197212d83365242511da5 (diff)
downloadopenttd-acafc26426f7725d519815ea25d6edddc67b3fa2.tar.xz
(svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs).
Diffstat (limited to 'src/timetable_cmd.cpp')
-rw-r--r--src/timetable_cmd.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/timetable_cmd.cpp b/src/timetable_cmd.cpp
index 62f91d051..4d463fb60 100644
--- a/src/timetable_cmd.cpp
+++ b/src/timetable_cmd.cpp
@@ -160,15 +160,15 @@ void UpdateVehicleTimetable(Vehicle *v, bool travelling)
if (!_patches.timetabling) return;
/* Make sure the timetable only starts when the vehicle reaches the first
- * order, not when travelling from the depot to the first station. */
- if (v->cur_order_index == 0 && !HasBit(v->vehicle_flags, VF_TIMETABLE_STARTED)) {
- SetBit(v->vehicle_flags, VF_TIMETABLE_STARTED);
- return;
- }
+ * order, not when travelling from the depot to the first station. */
+ if (v->cur_order_index == 0 && !HasBit(v->vehicle_flags, VF_TIMETABLE_STARTED)) {
+ SetBit(v->vehicle_flags, VF_TIMETABLE_STARTED);
+ return;
+ }
if (!HasBit(v->vehicle_flags, VF_TIMETABLE_STARTED)) return;
- if (HasBit(v->vehicle_flags, VF_AUTOFILL_TIMETABLE)) {
+ if (HasBit(v->vehicle_flags, VF_AUTOFILL_TIMETABLE)) {
if (timetabled == 0) {
/* Round the time taken up to the nearest day, as this will avoid
* confusion for people who are timetabling in days, and can be
@@ -182,7 +182,7 @@ void UpdateVehicleTimetable(Vehicle *v, bool travelling)
* assume that autofill is finished and turn it off again. */
ClrBit(v->vehicle_flags, VF_AUTOFILL_TIMETABLE);
}
- }
+ }
/* Vehicles will wait at stations if they arrive early even if they are not
* timetabled to wait there, so make sure the lateness counter is updated