mirror of https://github.com/OpenTTD/OpenTTD
(svn r18941) -Fix [FS#3575]: remove the loading indicators as soon as a train crashes
parent
da3ff51759
commit
b689e3d6e4
|
@ -3122,6 +3122,9 @@ uint Train::Crash(bool flooded)
|
||||||
* but must be updated after the train has been marked crashed */
|
* but must be updated after the train has been marked crashed */
|
||||||
TileIndex crossing = TrainApproachingCrossingTile(this);
|
TileIndex crossing = TrainApproachingCrossingTile(this);
|
||||||
if (crossing != INVALID_TILE) UpdateLevelCrossing(crossing);
|
if (crossing != INVALID_TILE) UpdateLevelCrossing(crossing);
|
||||||
|
|
||||||
|
/* Remove the loading indicators (if any) */
|
||||||
|
HideFillingPercent(&this->fill_percent_te_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
pass += Vehicle::Crash(flooded);
|
pass += Vehicle::Crash(flooded);
|
||||||
|
|
Loading…
Reference in New Issue