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
commitad3ef0fb26c5cf32228480a2d14510f27f1939af (patch)
tree4d4e76388db7fe5636cde9b69e8e82c19cad7126 /src/vehicle_func.h
parent752c8d8f2e966bd9102c1e73b9af99aa58b053b4 (diff)
downloadopenttd-ad3ef0fb26c5cf32228480a2d14510f27f1939af.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);