diff options
author | tron <tron@openttd.org> | 2006-09-03 08:25:27 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-09-03 08:25:27 +0000 |
commit | 1c21c645ae04601cd3711b37e6541d807cb727a7 (patch) | |
tree | 79ebec494a87cd0b8e16e577740868f5bf90a7d2 /depot.c | |
parent | 302772883ce9dd965ca6dfe9ade85530c6de8210 (diff) | |
download | openttd-1c21c645ae04601cd3711b37e6541d807cb727a7.tar.xz |
(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
Diffstat (limited to 'depot.c')
-rw-r--r-- | depot.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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); |