summaryrefslogtreecommitdiff
path: root/src/dock_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-07-21 22:25:21 +0000
committeralberth <alberth@openttd.org>2009-07-21 22:25:21 +0000
commit8083d67780d6a85c558080ec99dd2d24ae755d0f (patch)
treeb1639f095175d1ff0444f5ae8197ded9e79000f7 /src/dock_gui.cpp
parent639a829f87d6c3363e0930987a0953c9851ac636 (diff)
downloadopenttd-8083d67780d6a85c558080ec99dd2d24ae755d0f.tar.xz
(svn r16906) -Fix (r12939): Child windows of build toolbars were placed inconsistently.
Diffstat (limited to 'src/dock_gui.cpp')
-rw-r--r--src/dock_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp
index 3c4e08905..f7aed41ed 100644
--- a/src/dock_gui.cpp
+++ b/src/dock_gui.cpp
@@ -241,10 +241,10 @@ struct BuildDocksToolbarWindow : Window {
{
this->RaiseButtons();
- DeleteWindowById(WC_BUILD_STATION, 0);
- DeleteWindowById(WC_BUILD_DEPOT, 0);
+ DeleteWindowById(WC_BUILD_STATION, TRANSPORT_WATER);
+ DeleteWindowById(WC_BUILD_DEPOT, TRANSPORT_WATER);
DeleteWindowById(WC_SELECT_STATION, 0);
- DeleteWindowById(WC_BUILD_BRIDGE, 0);
+ DeleteWindowByClass(WC_BUILD_BRIDGE);
}
virtual void OnPlacePresize(Point pt, TileIndex tile_from)
@@ -341,7 +341,7 @@ struct BuildDocksStationWindow : public PickerWindowBase {
public:
BuildDocksStationWindow(const WindowDesc *desc, Window *parent) : PickerWindowBase(parent)
{
- this->InitNested(desc);
+ this->InitNested(desc, TRANSPORT_WATER);
this->LowerWidget(_settings_client.gui.station_show_coverage + BDSW_LT_OFF);
}
@@ -447,7 +447,7 @@ private:
public:
BuildDocksDepotWindow(const WindowDesc *desc, Window *parent) : PickerWindowBase(parent)
{
- this->InitNested(desc);
+ this->InitNested(desc, TRANSPORT_WATER);
this->LowerWidget(_ship_depot_direction + BDDW_X);
UpdateDocksDirection();
}