diff options
author | rubidium <rubidium@openttd.org> | 2010-09-08 21:14:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-09-08 21:14:41 +0000 |
commit | 0e840f7360895ae9759a556b011759fc4662b213 (patch) | |
tree | 8a1adff60591a78a3033bad497d403f4bdb3f2a8 /src/group_gui.cpp | |
parent | ea4b40704b351de69cff4a6beaa4cf526f18bb9b (diff) | |
download | openttd-0e840f7360895ae9759a556b011759fc4662b213.tar.xz |
(svn r20770) -Codechange: move some bits around in CmdMassStartStop's parameters
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index b8cb5227d..b93a9e550 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -481,11 +481,10 @@ public: case GRP_WIDGET_START_ALL: case GRP_WIDGET_STOP_ALL: { // Start/stop all vehicles of the list - DoCommandP(0, this->group_sel, ((IsAllGroupID(this->group_sel) ? VLW_STANDARD : VLW_GROUP_LIST) & VLW_MASK) - | (1 << 6) - | (widget == GRP_WIDGET_START_ALL ? (1 << 5) : 0) + DoCommandP(0, (1 << 1) | (widget == GRP_WIDGET_START_ALL ? (1 << 0) : 0), + ((IsAllGroupID(this->group_sel) ? VLW_STANDARD : VLW_GROUP_LIST) & VLW_MASK) + | (this->group_sel << 16) | this->vehicle_type, CMD_MASS_START_STOP); - break; } |