mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r21583) -Fix (r21566): The new scrollbar was not ignored correctly for ships and aircrafts.
This commit is contained in:
parent
a448dc24d9
commit
b9f93a48e9
|
@ -729,7 +729,7 @@ struct RefitWindow : public Window {
|
|||
const NWidgetCore *matrix_widget = this->GetWidget<NWidgetCore>(VRW_VEHICLE_PANEL_DISPLAY);
|
||||
if (_current_text_dir == TD_RTL) click_x = matrix_widget->current_x - click_x;
|
||||
click_x -= this->vehicle_margin;
|
||||
click_x += this->hscroll->GetPosition();
|
||||
if (this->hscroll != NULL) click_x += this->hscroll->GetPosition();
|
||||
|
||||
return click_x;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue