(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

@@ -254,6 +254,10 @@ static void BuildDockStationWndProc(Window *w, WindowEvent *e)
CheckRedrawStationCoverage(w);
break;
}
case WE_DESTROY:
ResetObjectToPlace();
break;
}
}
@@ -320,6 +324,10 @@ static void BuildDocksDepotWndProc(Window *w, WindowEvent *e)
if (WP(w,def_d).close)
DeleteWindow(w);
break;
case WE_DESTROY:
ResetObjectToPlace();
break;
}
}