diff options
author | smatz <smatz@openttd.org> | 2008-09-19 16:34:24 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-19 16:34:24 +0000 |
commit | 89edec7bfbb1186e1e86f99f456c7981c4fa4d6f (patch) | |
tree | 713a0b06d25d85e67fc7bcf3de87eb51f2c58cdd /src | |
parent | ee2a851aaba332795c405fc79270d9b7ab0ebb6d (diff) | |
download | openttd-89edec7bfbb1186e1e86f99f456c7981c4fa4d6f.tar.xz |
(svn r14360) -Cleanup (r12652): remove unused handler for the 'Tranfser' button
Diffstat (limited to 'src')
-rw-r--r-- | src/order_gui.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 1a1a9d965..9f17f278d 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -539,21 +539,6 @@ private: } /** - * Handle the click on the transfer button. - * - * @param w current window - */ - static void OrderClick_Transfer(OrdersWindow *w, int i) - { - VehicleOrderID sel_ord = w->OrderGetSel(); - const Order *order = GetVehicleOrder(w->vehicle, sel_ord); - - if (order == NULL) return; - - DoCommandP(w->vehicle->tile, w->vehicle->index + (sel_ord << 16), MOF_UNLOAD | ((order->GetUnloadType() & ~OUFB_NO_UNLOAD) ^ OUFB_TRANSFER) << 4, NULL, CMD_MODIFY_ORDER | CMD_MSG(STR_8835_CAN_T_MODIFY_THIS_ORDER)); - } - - /** * Handle the click on the skip button. * If ctrl is pressed skip to selected order. * Else skip to current order + 1 @@ -969,7 +954,6 @@ public: {'H', OrderClick_Nonstop}, {'J', OrderClick_FullLoad}, {'K', OrderClick_Unload}, - //{'?', OrderClick_Transfer}, //('?', OrderClick_Service}, }; |