Changeset - r14398:461a80e5f996
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-01-30 17:42:04
frosch@openttd.org
(svn r18965) -Fix (r17846): Don't compare horizontal positions with vertical.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/network_content_gui.cpp
Show inline comments
 
@@ -606,7 +606,8 @@ public:
 
				this->selected = *this->content.Get(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);
 
					this->content.ForceResort();
 
				}
0 comments (0 inline, 0 general)