mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 04:13:26 +00:00
(svn r16178) -Fix [FS#2866]: don't try to reserve path for trains crashed in station
This commit is contained in:
parent
41827de1f8
commit
8dc0632b78
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user