summaryrefslogtreecommitdiff
path: root/src/vehicle_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-19 20:42:00 +0000
committerrubidium <rubidium@openttd.org>2010-08-19 20:42:00 +0000
commit646fbb628aa1e19a19d02a3ad8abf24146fe5a12 (patch)
treeeb71d14916da6883714d2b0775fcd8a3e1ce3f74 /src/vehicle_cmd.cpp
parente89a0fb7f9059c995383d91a6aa16edac5ad841e (diff)
downloadopenttd-646fbb628aa1e19a19d02a3ad8abf24146fe5a12.tar.xz
(svn r20572) -Codechange: free/reserve some bits in the wagon move command to increase the vehicle pool limit
Diffstat (limited to 'src/vehicle_cmd.cpp')
-rw-r--r--src/vehicle_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp
index bb96a7315..6be4aea58 100644
--- a/src/vehicle_cmd.cpp
+++ b/src/vehicle_cmd.cpp
@@ -700,7 +700,7 @@ CommandCost CmdCloneVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
if (v->type == VEH_TRAIN && !Train::From(v)->IsFrontEngine()) {
/* this s a train car
* add this unit to the end of the train */
- CommandCost result = DoCommand(0, (w_rear->index << 16) | w->index, 1, flags, CMD_MOVE_RAIL_VEHICLE);
+ CommandCost result = DoCommand(0, w->index | 1 << 20, w_rear->index, flags, CMD_MOVE_RAIL_VEHICLE);
if (result.Failed()) {
/* The train can't be joined to make the same consist as the original.
* Sell what we already made (clean up) and return an error. */