(svn r20573) -Codechange: free/reserve some bits in the sell vehicle command to increase the vehicle pool limit

This commit is contained in:
rubidium
2010-08-19 20:45:29 +00:00
parent 646fbb628a
commit cc658392eb
5 changed files with 17 additions and 17 deletions

View File

@@ -976,7 +976,7 @@ struct DepotWindow : Window {
this->SetDirty();
int sell_cmd = (v->type == VEH_TRAIN && (widget == DEPOT_WIDGET_SELL_CHAIN || _ctrl_pressed)) ? 1 : 0;
DoCommandP(v->tile, v->index | sell_cmd << 16 | MAKE_ORDER_BACKUP_FLAG, 0, GetCmdSellVeh(v->type));
DoCommandP(v->tile, v->index | sell_cmd << 20 | MAKE_ORDER_BACKUP_FLAG, 0, GetCmdSellVeh(v->type));
break;
}