(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold

DestinationID being a union of these types is just hassle without benefit and cannot be handled correctly everywhere because of local lack of information
This commit is contained in:
tron
2006-09-03 08:25:27 +00:00
parent 302772883c
commit 1c21c645ae
21 changed files with 173 additions and 187 deletions

View File

@@ -79,14 +79,11 @@ Depot *AllocateDepot(void)
*/
void DestroyDepot(Depot *depot)
{
DestinationID dest;
/* Clear the tile */
DoClearSquare(depot->xy);
/* Clear the depot from all order-lists */
dest.depot = depot->index;
RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, dest);
RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, depot->index);
/* Delete the depot-window */
DeleteWindowById(WC_VEHICLE_DEPOT, depot->xy);