summaryrefslogtreecommitdiff
path: root/airport_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
commit7ba8da9dc7001fe7e61d5c6757193ff13b356da7 (patch)
treea7f0501f9d8bbcd2a5ff4e4033261f870d1164ca /airport_gui.c
parent1b3e626ff93738d4e549833d43f9f7fba7a70a43 (diff)
downloadopenttd-7ba8da9dc7001fe7e61d5c6757193ff13b356da7.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 'airport_gui.c')
-rw-r--r--airport_gui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/airport_gui.c b/airport_gui.c
index a7e35823c..e219df930 100644
--- a/airport_gui.c
+++ b/airport_gui.c
@@ -107,6 +107,10 @@ static void BuildAirToolbWndProc(Window *w, WindowEvent *e)
if (w != 0)
WP(w,def_d).close = true;
break;
+
+ case WE_DESTROY:
+ if (_patches.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0);
+ break;
}
}
@@ -134,6 +138,7 @@ void ShowBuildAirToolbar(void)
if (_current_player == OWNER_SPECTATOR) return;
DeleteWindowById(WC_BUILD_TOOLBAR, 0);
AllocateWindowDescFront(&_air_toolbar_desc, 0);
+ if (_patches.link_terraform_toolbar) ShowTerraformToolbar();
}
static void BuildAirportPickerWndProc(Window *w, WindowEvent *e)