(svn r1573) -Fix: Station and depot building mode is now terminated if the

corresponding windows are closed [ 1104277 ]
This commit is contained in:
celestar
2005-01-20 08:36:15 +00:00
parent e9c25f8274
commit f0e616ea2b
4 changed files with 29 additions and 0 deletions

View File

@@ -819,7 +819,12 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) {
}
CheckRedrawStationCoverage(w);
} break;
case WE_DESTROY:
ResetObjectToPlace();
break;
}
}
static const Widget _station_builder_widgets[] = {
@@ -902,6 +907,10 @@ static void BuildTrainDepotWndProc(Window *w, WindowEvent *e)
if (WP(w,def_d).close)
DeleteWindow(w);
return;
case WE_DESTROY:
ResetObjectToPlace();
break;
}
}