depot.c
changeset 4389 18d6ccfb5335
parent 4388 c8a66d26e146
child 4393 19245f613d3d
equal deleted inserted replaced
4388:c8a66d26e146 4389:18d6ccfb5335
    81 {
    81 {
    82 	/* Clear the tile */
    82 	/* Clear the tile */
    83 	DoClearSquare(depot->xy);
    83 	DoClearSquare(depot->xy);
    84 
    84 
    85 	/* Clear the depot from all order-lists */
    85 	/* Clear the depot from all order-lists */
    86 	RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, depot->index);
    86 	RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, (DestinationID)depot->index);
    87 
    87 
    88 	/* Delete the depot-window */
    88 	/* Delete the depot-window */
    89 	DeleteWindowById(WC_VEHICLE_DEPOT, depot->xy);
    89 	DeleteWindowById(WC_VEHICLE_DEPOT, depot->xy);
    90 }
    90 }
    91 
    91