summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-01-23 13:25:26 +0000
committerfrosch <frosch@openttd.org>2011-01-23 13:25:26 +0000
commit3f103c35a6af62993cc01d53d9fd4554f353bf60 (patch)
tree8a89412ddf9199a868d9631f66f3245508592f42 /src/vehicle_gui.cpp
parent967bb84af34c317b8170867eceae5ea05c60fd6e (diff)
downloadopenttd-3f103c35a6af62993cc01d53d9fd4554f353bf60.tar.xz
(svn r21901) -Codechange: Save some bits in p2 of CmdRefitVehicle.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 021dda94a..5bd5f18ef 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -587,7 +587,7 @@ struct RefitWindow : public Window {
{
Vehicle *v = Vehicle::Get(this->window_number);
CommandCost cost = DoCommand(v->tile, this->selected_vehicle, option->cargo | option->subtype << 8 |
- this->num_vehicles << 17, DC_QUERY_COST, GetCmdRefitVeh(v->type));
+ this->num_vehicles << 16, DC_QUERY_COST, GetCmdRefitVeh(v->type));
if (cost.Failed()) return INVALID_STRING_ID;
@@ -810,7 +810,7 @@ struct RefitWindow : public Window {
if (this->order == INVALID_VEH_ORDER_ID) {
bool delete_window = this->selected_vehicle == v->index && this->num_vehicles == UINT8_MAX;
- if (DoCommandP(v->tile, this->selected_vehicle, this->cargo->cargo | this->cargo->subtype << 8 | this->num_vehicles << 17, GetCmdRefitVeh(v)) && delete_window) delete this;
+ if (DoCommandP(v->tile, this->selected_vehicle, this->cargo->cargo | this->cargo->subtype << 8 | this->num_vehicles << 16, GetCmdRefitVeh(v)) && delete_window) delete this;
} else {
if (DoCommandP(v->tile, v->index, this->cargo->cargo | this->cargo->subtype << 8 | this->order << 16, CMD_ORDER_REFIT)) delete this;
}