summaryrefslogtreecommitdiff
path: root/dock_gui.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-11-09 07:25:55 +0000
committerpeter1138 <peter1138@openttd.org>2005-11-09 07:25:55 +0000
commit350f0f2cdb66364ca1b6116b77ef249b54f58421 (patch)
treea7f0501f9d8bbcd2a5ff4e4033261f870d1164ca /dock_gui.c
parent5e278b7ec3adfa6f0b65f3cff5769943166bef22 (diff)
downloadopenttd-350f0f2cdb66364ca1b6116b77ef249b54f58421.tar.xz
(svn r3157) - Feature: Added patch option to link the terraform toolbar to the rail, road, water and airport toolbars. If enabled, the terraform toolbar will open and close with those toolbars.
Diffstat (limited to 'dock_gui.c')
-rw-r--r--dock_gui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dock_gui.c b/dock_gui.c
index 02942d203..12d07606b 100644
--- a/dock_gui.c
+++ b/dock_gui.c
@@ -180,6 +180,10 @@ static void BuildDocksToolbWndProc(Window *w, WindowEvent *e)
}
VpSetPresizeRange(tile_from, tile_to);
} break;
+
+ case WE_DESTROY:
+ if (_patches.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0);
+ break;
}
}
@@ -213,6 +217,7 @@ void ShowBuildDocksToolbar(void)
if (_current_player == OWNER_SPECTATOR) return;
DeleteWindowById(WC_BUILD_TOOLBAR, 0);
AllocateWindowDesc(&_build_docks_toolbar_desc);
+ if (_patches.link_terraform_toolbar) ShowTerraformToolbar();
}
static void BuildDockStationWndProc(Window *w, WindowEvent *e)