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/autoreplace_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/autoreplace_cmd.cpp')
-rw-r--r-- | src/autoreplace_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp index 483fb445a..5883fb035 100644 --- a/src/autoreplace_cmd.cpp +++ b/src/autoreplace_cmd.cpp @@ -323,7 +323,7 @@ static CommandCost CopyHeadSpecificThings(Vehicle *old_head, Vehicle *new_head, CommandCost cost = CommandCost(); /* Share orders */ - if (cost.Succeeded() && old_head != new_head) cost.AddCost(DoCommand(0, (old_head->index << 16) | new_head->index, CO_SHARE, DC_EXEC, CMD_CLONE_ORDER)); + if (cost.Succeeded() && old_head != new_head) cost.AddCost(DoCommand(0, new_head->index | CO_SHARE << 30, old_head->index, DC_EXEC, CMD_CLONE_ORDER)); /* Copy group membership */ if (cost.Succeeded() && old_head != new_head) cost.AddCost(DoCommand(0, old_head->group_id, new_head->index, DC_EXEC, CMD_ADD_VEHICLE_GROUP)); |