diff options
author | smatz <smatz@openttd.org> | 2009-04-27 15:10:15 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-04-27 15:10:15 +0000 |
commit | 8dc0632b78137e2022273b52b3358a84c707930f (patch) | |
tree | b04b1495c6f35b6d8a0928ac6572a236e01aefc9 | |
parent | 41827de1f8e957733fcc427521a964f37b7b9207 (diff) | |
download | openttd-8dc0632b78137e2022273b52b3358a84c707930f.tar.xz |
(svn r16178) -Fix [FS#2866]: don't try to reserve path for trains crashed in station
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |