summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-04-27 15:10:15 +0000
committersmatz <smatz@openttd.org>2009-04-27 15:10:15 +0000
commit8dc0632b78137e2022273b52b3358a84c707930f (patch)
treeb04b1495c6f35b6d8a0928ac6572a236e01aefc9
parent41827de1f8e957733fcc427521a964f37b7b9207 (diff)
downloadopenttd-8dc0632b78137e2022273b52b3358a84c707930f.tar.xz
(svn r16178) -Fix [FS#2866]: don't try to reserve path for trains crashed in station
-rw-r--r--src/vehicle.cpp2
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);