diff options
author | alberth <alberth@openttd.org> | 2009-07-21 22:25:21 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-07-21 22:25:21 +0000 |
commit | 8083d67780d6a85c558080ec99dd2d24ae755d0f (patch) | |
tree | b1639f095175d1ff0444f5ae8197ded9e79000f7 /src/road_gui.cpp | |
parent | 639a829f87d6c3363e0930987a0953c9851ac636 (diff) | |
download | openttd-8083d67780d6a85c558080ec99dd2d24ae755d0f.tar.xz |
(svn r16906) -Fix (r12939): Child windows of build toolbars were placed inconsistently.
Diffstat (limited to 'src/road_gui.cpp')
-rw-r--r-- | src/road_gui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/road_gui.cpp b/src/road_gui.cpp index aa38c4923..5ce82268c 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -528,11 +528,11 @@ struct BuildRoadToolbarWindow : Window { this->InvalidateWidget(RTW_REMOVE); this->InvalidateWidget(RTW_ONE_WAY); - DeleteWindowById(WC_BUS_STATION, 0); - DeleteWindowById(WC_TRUCK_STATION, 0); - DeleteWindowById(WC_BUILD_DEPOT, 0); + DeleteWindowById(WC_BUS_STATION, TRANSPORT_ROAD); + DeleteWindowById(WC_TRUCK_STATION, TRANSPORT_ROAD); + DeleteWindowById(WC_BUILD_DEPOT, TRANSPORT_ROAD); DeleteWindowById(WC_SELECT_STATION, 0); - DeleteWindowById(WC_BUILD_BRIDGE, 0); + DeleteWindowByClass(WC_BUILD_BRIDGE); } virtual void OnPlaceDrag(ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, Point pt) @@ -796,7 +796,7 @@ enum BuildRoadDepotWidgets { }; struct BuildRoadDepotWindow : public PickerWindowBase { - BuildRoadDepotWindow(const WindowDesc *desc, Window *parent) : PickerWindowBase(desc, parent) + BuildRoadDepotWindow(const WindowDesc *desc, Window *parent) : PickerWindowBase(desc, parent, TRANSPORT_ROAD) { this->LowerWidget(_road_depot_orientation + BRDW_DEPOT_NE); if ( _cur_roadtype == ROADTYPE_TRAM) { @@ -907,7 +907,7 @@ enum BuildRoadStationWidgets { }; struct BuildRoadStationWindow : public PickerWindowBase { - BuildRoadStationWindow(const WindowDesc *desc, Window *parent, RoadStopType rs) : PickerWindowBase(desc, parent) + BuildRoadStationWindow(const WindowDesc *desc, Window *parent, RoadStopType rs) : PickerWindowBase(desc, parent, TRANSPORT_ROAD) { /* Trams don't have non-drivethrough stations */ if (_cur_roadtype == ROADTYPE_TRAM && _road_station_picker_orientation < DIAGDIR_END) { |