diff options
author | rubidium <rubidium@openttd.org> | 2008-09-21 18:28:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-09-21 18:28:35 +0000 |
commit | 7ef54069462d5aca6a995c84bcdb115fb5ad66bb (patch) | |
tree | 1e819cb68dd0710c53d955077906e09489b6b9c7 /src/vehicle.cpp | |
parent | 2bf182fb366e3feb5cdc917ba8c62fb5143e6c6b (diff) | |
download | openttd-7ef54069462d5aca6a995c84bcdb115fb5ad66bb.tar.xz |
(svn r14371) -Fix [FS#2313]: loading indicator didn't stay with the front engine when turning a train in a station.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 1e6ffb374..941ad8153 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -643,8 +643,7 @@ void Vehicle::PreDestructor() if (IsValidStationID(this->last_station_visited)) { GetStation(this->last_station_visited)->loading_vehicles.remove(this); - HideFillingPercent(this->fill_percent_te_id); - this->fill_percent_te_id = INVALID_TE_ID; + HideFillingPercent(&this->fill_percent_te_id); } if (IsEngineCountable(this)) { @@ -2533,8 +2532,7 @@ void Vehicle::LeaveStation() Station *st = GetStation(this->last_station_visited); st->loading_vehicles.remove(this); - HideFillingPercent(this->fill_percent_te_id); - this->fill_percent_te_id = INVALID_TE_ID; + HideFillingPercent(&this->fill_percent_te_id); if (this->type == VEH_TRAIN) { /* Trigger station animation (trains only) */ |