(svn r20571) -Codechange: free/reserve some bits in the order commands to increase the vehicle pool limit

This commit is contained in:
rubidium
2010-08-19 20:39:12 +00:00
parent 30e5d74e6d
commit 0d018b5840
6 changed files with 51 additions and 51 deletions

View File

@@ -72,7 +72,7 @@ void OrderBackup::DoRestore(Vehicle *v)
/* If we had shared orders, recover that */
if (this->clone != NULL) {
DoCommand(0, v->index | (this->clone->index << 16), CO_SHARE, DC_EXEC, CMD_CLONE_ORDER);
DoCommand(0, v->index | CO_SHARE << 30, this->clone->index, DC_EXEC, CMD_CLONE_ORDER);
} else if (this->orders != NULL && OrderList::CanAllocateItem()) {
v->orders.list = new OrderList(this->orders, v);
this->orders = NULL;