diff options
author | yexo <yexo@openttd.org> | 2010-01-28 22:06:13 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-28 22:06:13 +0000 |
commit | b689e3d6e43f5e5d90d0c2c93059cce5d48459ae (patch) | |
tree | 20179366c907e6fd9e234875c27069b3690bcc3b /src/train_cmd.cpp | |
parent | da3ff51759f75ef76b896d19a5ca6b88a586e724 (diff) | |
download | openttd-b689e3d6e43f5e5d90d0c2c93059cce5d48459ae.tar.xz |
(svn r18941) -Fix [FS#3575]: remove the loading indicators as soon as a train crashes
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index f2c2e4d37..b3f4f9801 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3122,6 +3122,9 @@ uint Train::Crash(bool flooded) * but must be updated after the train has been marked crashed */ TileIndex crossing = TrainApproachingCrossingTile(this); if (crossing != INVALID_TILE) UpdateLevelCrossing(crossing); + + /* Remove the loading indicators (if any) */ + HideFillingPercent(&this->fill_percent_te_id); } pass += Vehicle::Crash(flooded); |