(svn r16178) -Fix [FS#2866]: don't try to reserve path for trains crashed in station

This commit is contained in:
smatz 2009-04-27 15:10:15 +00:00
parent 41827de1f8
commit 8dc0632b78
1 changed files with 1 additions and 1 deletions

View File

@ -1531,7 +1531,7 @@ void Vehicle::LeaveStation()
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);