@@ -614,25 +614,25 @@ private:
ShowVehicleRefitWindow(w->vehicle, w->OrderGetSel(), w);
}
typedef void Handler(OrdersWindow*, int);
struct KeyToEvent {
uint16 keycode;
Handler *proc;
};
public:
OrdersWindow(const WindowDesc *desc, const Vehicle *v) : Window(desc, v->index)
{
this->caption_color = v->owner;
this->owner = v->owner;
this->vscroll.cap = 6;
this->resize.step_height = 10;
this->selected_order = -1;
this->vehicle = v;
if (_settings_client.gui.quick_goto && v->owner == _local_company) {
/* If there are less than 2 station, make Go To active. */
int station_orders = 0;
const Order *order;
FOR_VEHICLE_ORDERS(v, order) {
if (order->IsType(OT_GOTO_STATION)) station_orders++;