diff options
author | rubidium <rubidium@openttd.org> | 2010-09-08 18:55:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-09-08 18:55:58 +0000 |
commit | 9badab6454d18378fc81962c8883e9594b968276 (patch) | |
tree | 64f9b2aa92db6fbea21d89ad7ff17d50aed687e1 /src/group_gui.cpp | |
parent | 835d63a8d7cfaaedca9358e1ba051bf87428e98a (diff) | |
download | openttd-9badab6454d18378fc81962c8883e9594b968276.tar.xz |
(svn r20768) -Codechange: unify send-to-depot commands
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 562d358be..70c6e2122 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -573,13 +573,12 @@ public: ShowReplaceGroupVehicleWindow(this->group_sel, this->vehicle_type); break; case ADI_SERVICE: // Send for servicing - DoCommandP(0, this->group_sel, ((IsAllGroupID(this->group_sel) ? VLW_STANDARD : VLW_GROUP_LIST) & VLW_MASK) - | DEPOT_MASS_SEND - | DEPOT_SERVICE, GetCmdSendToDepot(this->vehicle_type)); + DoCommandP(0, this->group_sel, ((IsAllGroupID(this->group_sel) ? VLW_STANDARD : VLW_GROUP_LIST) & VLW_MASK) | + this->vehicle_type << 11 | DEPOT_MASS_SEND | DEPOT_SERVICE, GetCmdSendToDepot(this->vehicle_type)); break; case ADI_DEPOT: // Send to Depots - DoCommandP(0, this->group_sel, ((IsAllGroupID(this->group_sel) ? VLW_STANDARD : VLW_GROUP_LIST) & VLW_MASK) - | DEPOT_MASS_SEND, GetCmdSendToDepot(this->vehicle_type)); + DoCommandP(0, this->group_sel, ((IsAllGroupID(this->group_sel) ? VLW_STANDARD : VLW_GROUP_LIST) & VLW_MASK) | + this->vehicle_type << 11 | DEPOT_MASS_SEND, GetCmdSendToDepot(this->vehicle_type)); break; case ADI_ADD_SHARED: // Add shared Vehicles assert(Group::IsValidID(this->group_sel)); |