From 646fbb628aa1e19a19d02a3ad8abf24146fe5a12 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 19 Aug 2010 20:42:00 +0000 Subject: (svn r20572) -Codechange: free/reserve some bits in the wagon move command to increase the vehicle pool limit --- src/depot_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/depot_gui.cpp') diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 199971ac2..7fc07fcae 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -163,7 +163,7 @@ static void TrainDepotMoveVehicle(const Vehicle *wagon, VehicleID sel, const Veh if (wagon == v) return; - DoCommandP(v->tile, v->index + ((wagon == NULL ? INVALID_VEHICLE : wagon->index) << 16), _ctrl_pressed ? 1 : 0, CMD_MOVE_RAIL_VEHICLE | CMD_MSG(STR_ERROR_CAN_T_MOVE_VEHICLE)); + DoCommandP(v->tile, v->index | (_ctrl_pressed ? 1 : 0) << 20, wagon == NULL ? INVALID_VEHICLE : wagon->index, CMD_MOVE_RAIL_VEHICLE | CMD_MSG(STR_ERROR_CAN_T_MOVE_VEHICLE)); } /** -- cgit v1.2.3-54-g00ecf