Changeset - r11783:9d219209126a
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-04-27 15:10:15
smatz@openttd.org
(svn r16178) -Fix [FS#2866]: don't try to reserve path for trains crashed in station
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -1528,13 +1528,13 @@ void Vehicle::LeaveStation()
 
	current_order.MakeLeaveStation();
 
	Station *st = GetStation(this->last_station_visited);
 
	st->loading_vehicles.remove(this);
 

	
 
	HideFillingPercent(&this->fill_percent_te_id);
 

	
 
	if (this->type == VEH_TRAIN) {
 
	if (this->type == VEH_TRAIN && !(this->vehstatus & VS_CRASHED)) {
 
		/* Trigger station animation (trains only) */
 
		if (IsTileType(this->tile, MP_STATION)) StationAnimationTrigger(st, this->tile, STAT_ANIM_TRAIN_DEPARTS);
 

	
 
		/* Try to reserve a path when leaving the station as we
 
		 * might not be marked as wanting a reservation, e.g.
 
		 * when an overlength train gets turned around in a station. */
0 comments (0 inline, 0 general)