mirror of https://github.com/OpenTTD/OpenTTD
(svn r24834) -Fix [FS#5396]: The autorefit dropdown in the order GUI wasn't always updated when modifying vehicle consists.
parent
c75962e04c
commit
01566d6816
|
@ -869,6 +869,10 @@ public:
|
||||||
case VIWD_AUTOREPLACE:
|
case VIWD_AUTOREPLACE:
|
||||||
/* Autoreplace replaced the vehicle */
|
/* Autoreplace replaced the vehicle */
|
||||||
this->vehicle = Vehicle::Get(this->window_number);
|
this->vehicle = Vehicle::Get(this->window_number);
|
||||||
|
/* FALL THROUGH */
|
||||||
|
|
||||||
|
case VIWD_CONSIST_CHANGED:
|
||||||
|
/* Vehicle composition was changed. */
|
||||||
this->UpdateAutoRefitState();
|
this->UpdateAutoRefitState();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -242,6 +242,7 @@ void Train::ConsistChanged(bool same_length)
|
||||||
this->UpdateAcceleration();
|
this->UpdateAcceleration();
|
||||||
SetWindowDirty(WC_VEHICLE_DETAILS, this->index);
|
SetWindowDirty(WC_VEHICLE_DETAILS, this->index);
|
||||||
InvalidateWindowData(WC_VEHICLE_REFIT, this->index, VIWD_CONSIST_CHANGED);
|
InvalidateWindowData(WC_VEHICLE_REFIT, this->index, VIWD_CONSIST_CHANGED);
|
||||||
|
InvalidateWindowData(WC_VEHICLE_ORDERS, this->index, VIWD_CONSIST_CHANGED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue