# HG changeset patch # User tron # Date 1151474169 0 # Node ID 76a94f16565c8cd93f1722d2bbf81c9e5d46253c # Parent 30cac8061fa2d3c336380212b5a5f8dd11c9f3d3 (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 diff -r 30cac8061fa2 -r 76a94f16565c terraform_gui.c --- a/terraform_gui.c Wed Jun 28 05:47:55 2006 +0000 +++ b/terraform_gui.c Wed Jun 28 05:56:09 2006 +0000 @@ -244,15 +244,7 @@ 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; } }