(svn r14371) -Fix [FS#2313]: loading indicator didn't stay with the front engine when turning a train in a station.
This commit is contained in:
@@ -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) */
|
||||
|
Reference in New Issue
Block a user