From 4733b696a1833ecbbc5dd6ac873ec3396c8f5bfa Mon Sep 17 00:00:00 2001 From: alberth Date: Tue, 22 Dec 2009 11:15:08 +0000 Subject: [PATCH] (svn r18600) -Fix (r18599): Re-enable ctl+click to jump to competitor station. --- src/order_gui.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/order_gui.cpp b/src/order_gui.cpp index bd5781212c..896697ba86 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -491,8 +491,6 @@ private: */ int GetOrderFromPt(int y) { - if (this->vehicle->owner != _local_company) return INVALID_ORDER; // Selection is not possible at orders of a competitor. - int sel = (y - this->GetWidget(ORDER_WIDGET_ORDER_LIST)->pos_y - WD_FRAMERECT_TOP) / this->resize.step_height; // Selected line in the ORDER_WIDGET_ORDER_LIST panel. if ((uint)sel >= this->vscroll.GetCapacity()) return INVALID_ORDER; @@ -1026,7 +1024,7 @@ public: this->DeleteChildWindows(); HideDropDownMenu(this); - if (sel == INVALID_ORDER) { + if (sel == INVALID_ORDER || this->vehicle->owner != _local_company) { /* Deselect clicked order */ this->selected_order = -1; } else if (sel == this->selected_order) {