Changeset - r7062:6a1de70754de
[Not reviewed]
master
0 1 0
maedhros - 17 years ago 2007-06-25 17:17:40
maedhros@openttd.org
(svn r10327) -Fix (r10236) [FS#934]: Vehicles wait at stations when they arrive early even
if they haven't been timetabled to wait, so make sure the lateness counter gets
updated as well.
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/timetable_cmd.cpp
Show inline comments
 
@@ -95,7 +95,10 @@ void UpdateVehicleTimetable(Vehicle *v, 
 

	
 
	v->current_order_time = 0;
 

	
 
	if (!_patches.timetabling || timetabled == 0) return;
 
	/* 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
 
	 * when this happens. */
 
	if (!_patches.timetabling || (timetabled == 0 && (travelling || v->lateness_counter >= 0))) return;
 

	
 
	v->lateness_counter -= (timetabled - time_taken);
 

	
0 comments (0 inline, 0 general)