summaryrefslogtreecommitdiff
path: root/src/autoreplace_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/autoreplace_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/autoreplace_cmd.cpp')
-rw-r--r--src/autoreplace_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp
index 5883fb035..8771ef936 100644
--- a/src/autoreplace_cmd.cpp
+++ b/src/autoreplace_cmd.cpp
@@ -309,7 +309,7 @@ static inline CommandCost StartStopVehicle(const Vehicle *v, bool evaluate_callb
*/
static inline CommandCost MoveVehicle(const Vehicle *v, const Vehicle *after, DoCommandFlag flags, bool whole_chain)
{
- return DoCommand(0, v->index | (after != NULL ? after->index : INVALID_VEHICLE) << 16, whole_chain ? 1 : 0, flags, CMD_MOVE_RAIL_VEHICLE);
+ return DoCommand(0, v->index | (whole_chain ? 1 : 0) << 20, after != NULL ? after->index : INVALID_VEHICLE, flags, CMD_MOVE_RAIL_VEHICLE);
}
/**