summaryrefslogtreecommitdiff
path: root/terraform_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-28 05:56:09 +0000
committertron <tron@openttd.org>2006-06-28 05:56:09 +0000
commitbe0ec7bbf594bec1e88b50927298b4e9e24e9f2b (patch)
tree4902125777bd5819629a4e3675e579f589d6599b /terraform_gui.c
parenta370ca97d6efe42c6d8485fccc44969095341eca (diff)
downloadopenttd-be0ec7bbf594bec1e88b50927298b4e9e24e9f2b.tar.xz
(svn r5395) The railway station and depot building windows are not affiliated with the terraforming toolbar. So don't let the terraforming toolbar try to close them, they aren't open then anyway.
Also remove an empty case
Diffstat (limited to 'terraform_gui.c')
-rw-r--r--terraform_gui.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/terraform_gui.c b/terraform_gui.c
index 55fc8444d..8c4fa62ce 100644
--- a/terraform_gui.c
+++ b/terraform_gui.c
@@ -244,15 +244,7 @@ static void TerraformToolbWndProc(Window *w, WindowEvent *e)
case WE_ABORT_PLACE_OBJ:
UnclickWindowButtons(w);
SetWindowDirty(w);
-
- w = FindWindowById(WC_BUILD_STATION, 0);
- if (w != NULL) WP(w,def_d).close=true;
- w = FindWindowById(WC_BUILD_DEPOT, 0);
- if (w != NULL) WP(w,def_d).close=true;
break;
-
- case WE_PLACE_PRESIZE: {
- } break;
}
}