summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-19 20:45:29 +0000
committerrubidium <rubidium@openttd.org>2010-08-19 20:45:29 +0000
commitcc658392ebef76ca21efc7c3ab1aaaa93c50448e (patch)
treeb5927fb50b80510e15aa0bc9e42ef24b66c17850 /src/train_cmd.cpp
parent646fbb628aa1e19a19d02a3ad8abf24146fe5a12 (diff)
downloadopenttd-cc658392ebef76ca21efc7c3ab1aaaa93c50448e.tar.xz
(svn r20573) -Codechange: free/reserve some bits in the sell vehicle command to increase the vehicle pool limit
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 562801ef7..0a0404bbb 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -1383,7 +1383,7 @@ CommandCost CmdSellRailWagon(DoCommandFlag flags, Vehicle *t, uint16 data, uint3
/* If we deleted a window then open a new one for the 'new' train */
if (IsLocalCompany() && w != NULL) ShowVehicleViewWindow(new_head);
- } else if (v->IsPrimaryVehicle() && data & (MAKE_ORDER_BACKUP_FLAG >> 16)) {
+ } else if (v->IsPrimaryVehicle() && data & (MAKE_ORDER_BACKUP_FLAG >> 20)) {
OrderBackup::Backup(v, user);
}