Merge branch 'zoning' into jgrpp
Conflicts: src/station_gui.cpp src/zoning_cmd.cpp
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "linkgraph/linkgraph.h"
|
||||
#include "zoom_func.h"
|
||||
#include "departures_gui.h"
|
||||
#include "zoning.h"
|
||||
|
||||
#include "widgets/station_widget.h"
|
||||
|
||||
@@ -1310,10 +1311,12 @@ struct StationViewWindow : public Window {
|
||||
this->sort_orders[0] = SO_ASCENDING;
|
||||
this->SelectSortOrder((SortOrder)_settings_client.gui.station_gui_sort_order);
|
||||
this->owner = Station::Get(window_number)->owner;
|
||||
ZoningStationWindowOpenClose(Station::Get(window_number));
|
||||
}
|
||||
|
||||
~StationViewWindow()
|
||||
{
|
||||
ZoningStationWindowOpenClose(Station::Get(window_number));
|
||||
DeleteWindowById(WC_TRAINS_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_TRAIN, this->owner, this->window_number).Pack(), false);
|
||||
DeleteWindowById(WC_ROADVEH_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_ROAD, this->owner, this->window_number).Pack(), false);
|
||||
DeleteWindowById(WC_SHIPS_LIST, VehicleListIdentifier(VL_STATION_LIST, VEH_SHIP, this->owner, this->window_number).Pack(), false);
|
||||
|
Reference in New Issue
Block a user