summaryrefslogtreecommitdiff
path: root/src/vehicle_func.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2008-04-19 15:14:20 +0000
committerbjarni <bjarni@openttd.org>2008-04-19 15:14:20 +0000
commit44145548ea0164ceee384bbcdaef29462534c373 (patch)
tree4d4e76388db7fe5636cde9b69e8e82c19cad7126 /src/vehicle_func.h
parenta9775dfcc9d5c7ff07eac18a9cd7e3f121812657 (diff)
downloadopenttd-44145548ea0164ceee384bbcdaef29462534c373.tar.xz
(svn r12791) -Codechange: [autoreplace] Added a flag parameter (listens for DC_EXEC and DC_QUERY_COST) and included more info when returning CommandCost
This allowed cleaning up the code in MaybeReplaceVehicle()
Diffstat (limited to 'src/vehicle_func.h')
-rw-r--r--src/vehicle_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_func.h b/src/vehicle_func.h
index a884e8fd9..2d44eb6a9 100644
--- a/src/vehicle_func.h
+++ b/src/vehicle_func.h
@@ -71,7 +71,7 @@ void BuildDepotVehicleList(VehicleType type, TileIndex tile, Vehicle ***engine_l
CommandCost SendAllVehiclesToDepot(VehicleType type, uint32 flags, bool service, PlayerID owner, uint16 vlw_flag, uint32 id);
void VehicleEnterDepot(Vehicle *v);
-CommandCost MaybeReplaceVehicle(Vehicle *v, bool check, bool display_costs);
+CommandCost MaybeReplaceVehicle(Vehicle *v, uint32 flags, bool display_costs);
bool CanBuildVehicleInfrastructure(VehicleType type);
void CcCloneVehicle(bool success, TileIndex tile, uint32 p1, uint32 p2);