forked from mirror/OpenTTD
(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:
5
depot.c
5
depot.c
@@ -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);
|
||||
|
Reference in New Issue
Block a user