From 7e1974084396c4e7bab80e31101119730b8387fd Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 28 Jun 2006 05:56:09 +0000 Subject: (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 --- terraform_gui.c | 8 -------- 1 file changed, 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; } } -- cgit v1.2.3-70-g09d2