Rename close window functions to match upstream
This commit is contained in:
@@ -61,12 +61,12 @@ BaseStation::~BaseStation()
|
||||
{
|
||||
if (CleaningPool()) return;
|
||||
|
||||
DeleteWindowById(WC_TRAINS_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_TRAIN, this->owner, this->index).Pack());
|
||||
DeleteWindowById(WC_ROADVEH_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_ROAD, this->owner, this->index).Pack());
|
||||
DeleteWindowById(WC_SHIPS_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_SHIP, this->owner, this->index).Pack());
|
||||
DeleteWindowById(WC_AIRCRAFT_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_AIRCRAFT, this->owner, this->index).Pack());
|
||||
DeleteWindowById(WC_DEPARTURES_BOARD, this->index);
|
||||
DeleteWindowById(WC_STATION_CARGO, this->index);
|
||||
CloseWindowById(WC_TRAINS_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_TRAIN, this->owner, this->index).Pack());
|
||||
CloseWindowById(WC_ROADVEH_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_ROAD, this->owner, this->index).Pack());
|
||||
CloseWindowById(WC_SHIPS_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_SHIP, this->owner, this->index).Pack());
|
||||
CloseWindowById(WC_AIRCRAFT_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_AIRCRAFT, this->owner, this->index).Pack());
|
||||
CloseWindowById(WC_DEPARTURES_BOARD, this->index);
|
||||
CloseWindowById(WC_STATION_CARGO, this->index);
|
||||
}
|
||||
|
||||
Station::Station(TileIndex tile) :
|
||||
@@ -152,7 +152,7 @@ Station::~Station()
|
||||
InvalidateWindowData(WC_STATION_LIST, this->owner, 0);
|
||||
}
|
||||
|
||||
DeleteWindowById(WC_STATION_VIEW, index);
|
||||
CloseWindowById(WC_STATION_VIEW, index);
|
||||
DeleteNewGRFInspectWindow(GSF_FAKE_STATION_STRUCT, this->index);
|
||||
|
||||
/* Now delete all orders that go to the station */
|
||||
|
Reference in New Issue
Block a user