Mercurial > hg > openttd
diff src/depot_gui.cpp @ 15890:52d3e250c976 draft
(svn r20572) -Codechange: free/reserve some bits in the wagon move command to increase the vehicle pool limit
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 19 Aug 2010 20:42:00 +0000 (2010-08-19) |
parents | 270f9b0689cc |
children | 67b39929d6a2 |
line wrap: on
line diff
--- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -163,7 +163,7 @@ 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)); } /**