diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-11-02 22:58:40 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-12-16 22:28:32 +0100 |
commit | 211c630cbe4185a2adf8b8cd8f52ca58f8bf17ed (patch) | |
tree | 89290b522a2852d71e9a71c43b6d581fb8d1d36d /src/vehicle_gui.cpp | |
parent | de45a8729c0f1ab965e4adf4e6ad7095a4a678c8 (diff) | |
download | openttd-211c630cbe4185a2adf8b8cd8f52ca58f8bf17ed.tar.xz |
Codechange: Un-bitstuff order commands.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 80b75e7ce..2b7446a5e 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1040,7 +1040,7 @@ struct RefitWindow : public Window { bool delete_window = this->selected_vehicle == v->index && this->num_vehicles == UINT8_MAX; if (Command<CMD_REFIT_VEHICLE>::Post(GetCmdRefitVehMsg(v), v->tile, this->selected_vehicle, this->cargo->cargo | this->cargo->subtype << 8 | this->num_vehicles << 16, {}) && delete_window) this->Close(); } else { - if (Command<CMD_ORDER_REFIT>::Post(v->tile, v->index, this->cargo->cargo | this->order << 16, {})) this->Close(); + if (Command<CMD_ORDER_REFIT>::Post(v->tile, v->index, this->order, this->cargo->cargo)) this->Close(); } } break; |