diff options
author | rubidium <rubidium@openttd.org> | 2010-08-19 20:39:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-19 20:39:12 +0000 |
commit | e89a0fb7f9059c995383d91a6aa16edac5ad841e (patch) | |
tree | 12dcf0c089ab3c85d1ee103dc28081bd74f766b3 /src/vehicle_cmd.cpp | |
parent | 983883a2b91b161035842a2b50e134136ea0fd64 (diff) | |
download | openttd-e89a0fb7f9059c995383d91a6aa16edac5ad841e.tar.xz |
(svn r20571) -Codechange: free/reserve some bits in the order commands to increase the vehicle pool limit
Diffstat (limited to 'src/vehicle_cmd.cpp')
-rw-r--r-- | src/vehicle_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp index e5b5df6cd..bb96a7315 100644 --- a/src/vehicle_cmd.cpp +++ b/src/vehicle_cmd.cpp @@ -784,7 +784,7 @@ CommandCost CmdCloneVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint * the vehicle refitted before doing this, otherwise the moved * cargo types might not match (passenger vs non-passenger) */ - DoCommand(0, (v_front->index << 16) | w_front->index, p2 & 1 ? CO_SHARE : CO_COPY, flags, CMD_CLONE_ORDER); + DoCommand(0, w_front->index | (p2 & 1 ? CO_SHARE : CO_COPY) << 30, v_front->index, flags, CMD_CLONE_ORDER); /* Now clone the vehicle's name, if it has one. */ if (v_front->name != NULL) CloneVehicleName(v_front, w_front); |