|
|
@ -32,6 +32,7 @@
|
|
|
|
#include "command_func.h"
|
|
|
|
#include "command_func.h"
|
|
|
|
#include "order_func.h"
|
|
|
|
#include "order_func.h"
|
|
|
|
#include "news_func.h"
|
|
|
|
#include "news_func.h"
|
|
|
|
|
|
|
|
#include "aircraft.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "table/sprites.h"
|
|
|
|
#include "table/sprites.h"
|
|
|
|
#include "table/strings.h"
|
|
|
|
#include "table/strings.h"
|
|
|
@ -74,6 +75,13 @@ Station::~Station()
|
|
|
|
loading_vehicles.front()->LeaveStation();
|
|
|
|
loading_vehicles.front()->LeaveStation();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Vehicle *v;
|
|
|
|
|
|
|
|
FOR_ALL_VEHICLES(v) {
|
|
|
|
|
|
|
|
if (v->type == VEH_AIRCRAFT && IsNormalAircraft(v) && v->u.air.targetairport == this->index) {
|
|
|
|
|
|
|
|
v->u.air.targetairport = INVALID_STATION;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MarkDirty();
|
|
|
|
MarkDirty();
|
|
|
|
InvalidateWindowData(WC_STATION_LIST, this->owner, 0);
|
|
|
|
InvalidateWindowData(WC_STATION_LIST, this->owner, 0);
|
|
|
|
|
|
|
|
|
|
|
|