summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-09-08 18:55:58 +0000
committerrubidium <rubidium@openttd.org>2010-09-08 18:55:58 +0000
commit9badab6454d18378fc81962c8883e9594b968276 (patch)
tree64f9b2aa92db6fbea21d89ad7ff17d50aed687e1 /src/roadveh_cmd.cpp
parent835d63a8d7cfaaedca9358e1ba051bf87428e98a (diff)
downloadopenttd-9badab6454d18378fc81962c8883e9594b968276.tar.xz
(svn r20768) -Codechange: unify send-to-depot commands
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index d2529185f..1391d8cb7 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -311,31 +311,6 @@ bool RoadVehicle::FindClosestDepot(TileIndex *location, DestinationID *destinati
}
/**
- * Send a road vehicle to the depot.
- * @param tile unused
- * @param flags operation to perform
- * @param p1 vehicle ID to send to the depot
- * @param p2 various bitmasked elements
- * - p2 bit 0-3 - DEPOT_ flags (see vehicle.h)
- * - p2 bit 8-10 - VLW flag (for mass goto depot)
- * @param text unused
- * @return the cost of this operation or an error
- */
-CommandCost CmdSendRoadVehToDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
-{
- if (p2 & DEPOT_MASS_SEND) {
- /* Mass goto depot requested */
- if (!ValidVLWFlags(p2 & VLW_MASK)) return CMD_ERROR;
- return SendAllVehiclesToDepot(VEH_ROAD, flags, p2 & DEPOT_SERVICE, _current_company, (p2 & VLW_MASK), p1);
- }
-
- RoadVehicle *v = RoadVehicle::GetIfValid(p1);
- if (v == NULL) return CMD_ERROR;
-
- return v->SendToDepot(flags, (DepotCommand)(p2 & DEPOT_COMMAND_MASK));
-}
-
-/**
* Turn a roadvehicle around.
* @param tile unused
* @param flags operation to perform