diff options
author | bjarni <bjarni@openttd.org> | 2006-10-04 12:01:59 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-10-04 12:01:59 +0000 |
commit | f8f0bd4943cc5c6ccdcf4f9fe8dc4b03c64f6f3f (patch) | |
tree | de1248467189ac58bfefca72dc98668d05a651bf /vehicle.h | |
parent | 5bb5da02ad2f1a02462aa1d39777ec5d1d897266 (diff) | |
download | openttd-f8f0bd4943cc5c6ccdcf4f9fe8dc4b03c64f6f3f.tar.xz |
(svn r6637) -Codechange: merged all (vehicle type)EnterDepot into VehicleEnterDepot()
This revealed duplicated code like aircraft lists got invalidated twice
Moved invalidation of the vehicle detail window to VehicleServiceInDepot() as it should always be updated when serviced
Diffstat (limited to 'vehicle.h')
-rw-r--r-- | vehicle.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -272,8 +272,6 @@ int32 GetRefitCost(EngineID engine_type); void ViewportAddVehicles(DrawPixelInfo *dpi); -void TrainEnterDepot(Vehicle *v, TileIndex tile); - /* train_cmd.h */ int GetTrainImage(const Vehicle* v, Direction direction); int GetAircraftImage(const Vehicle* v, Direction direction); @@ -320,6 +318,7 @@ bool VehicleNeedsService(const Vehicle *v); uint GenerateVehicleSortList(const Vehicle*** sort_list, uint16 *length_of_array, byte type, PlayerID owner, StationID station, OrderID order, uint16 depot_airport_index, uint16 window_type); void BuildDepotVehicleList(byte type, TileIndex tile, Vehicle ***engine_list, uint16 *engine_list_length, uint16 *engine_count, Vehicle ***wagon_list, uint16 *wagon_list_length, uint16 *wagon_count); int32 SendAllVehiclesToDepot(byte type, uint32 flags, bool service, PlayerID owner, uint16 vlw_flag, uint32 id); +void VehicleEnterDepot(Vehicle *v); /* Flags to add to p2 for goto depot commands */ /* Note: bits 8-10 are used for VLW flags */ |