mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r18965) -Fix (r17846): Don't compare horizontal positions with vertical.
This commit is contained in:
parent
af50e0a4cf
commit
2f6fe85f23
@ -606,7 +606,8 @@ public:
|
|||||||
this->selected = *this->content.Get(id_v);
|
this->selected = *this->content.Get(id_v);
|
||||||
this->list_pos = id_v;
|
this->list_pos = id_v;
|
||||||
|
|
||||||
if (pt.x <= (int)(this->GetWidget<NWidgetBase>(NCLWW_CHECKBOX)->pos_y + this->GetWidget<NWidgetBase>(NCLWW_CHECKBOX)->current_y)) {
|
const NWidgetBase *checkbox = this->GetWidget<NWidgetBase>(NCLWW_CHECKBOX);
|
||||||
|
if (IsInsideBS(pt.x, checkbox->pos_x, checkbox->current_x)) {
|
||||||
_network_content_client.ToggleSelectedState(this->selected);
|
_network_content_client.ToggleSelectedState(this->selected);
|
||||||
this->content.ForceResort();
|
this->content.ForceResort();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user