diff src/timetable_cmd.cpp @ 8970:3667cbc7dc1d draft

(svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs).
author rubidium <rubidium@openttd.org>
date Fri, 18 Apr 2008 04:54:09 +0000 (2008-04-18)
parents 02787d6f3834
children d48433370037
line wrap: on
line diff
--- a/src/timetable_cmd.cpp
+++ b/src/timetable_cmd.cpp
@@ -160,15 +160,15 @@
 	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 @@
 			 * 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