(svn r14007) -Fix [FS#2098]: Notify vehicle windows when their internal state is botched up from outside.

This commit is contained in:
frosch
2008-08-06 19:00:31 +00:00
parent 84cbf2c755
commit 3064767d69
2 changed files with 7 additions and 1 deletions

View File

@@ -619,6 +619,12 @@ public:
this->FindWindowPlacementAndResize(desc);
}
virtual void OnInvalidateData(int data = 0)
{
/* Autoreplace replaced the vehicle */
this->vehicle = GetVehicle(this->window_number);
}
virtual void OnPaint()
{
bool shared_orders = this->vehicle->IsOrderListShared();