Changeset - r7076:444cfe2b3d5d
[Not reviewed]
master
0 1 0
maedhros - 17 years ago 2007-06-26 14:43:41
maedhros@openttd.org
(svn r10341) -Fix (r10236): Only update the timetable when leaving stations if this is a scheduled stop.
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -3160,14 +3160,16 @@ void Vehicle::BeginLoading()
 
void Vehicle::LeaveStation()
 
{
 
	assert(current_order.type == OT_LOADING);
 

	
 
	/* Only update the timetable if the vehicle was supposed to stop here. */
 
	if (current_order.flags & OF_NON_STOP) UpdateVehicleTimetable(this, false);
 

	
 
	current_order.type = OT_LEAVESTATION;
 
	current_order.flags = 0;
 
	GetStation(this->last_station_visited)->loading_vehicles.remove(this);
 

	
 
	HideFillingPercent(this->fill_percent_te_id);
 
	this->fill_percent_te_id = INVALID_TE_ID;
 

	
 
	UpdateVehicleTimetable(this, false);
 
}
 

	
 

	
0 comments (0 inline, 0 general)