From 8dc0632b78137e2022273b52b3358a84c707930f Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 27 Apr 2009 15:10:15 +0000 Subject: (svn r16178) -Fix [FS#2866]: don't try to reserve path for trains crashed in station --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 5bfce1171..5c5b50988 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -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); -- cgit v1.2.3-54-g00ecf