summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-01-30 18:43:14 +0000
committerfrosch <frosch@openttd.org>2010-01-30 18:43:14 +0000
commitf9cebfcfc407a01c1116208771d289f3017e2cc5 (patch)
treed55bdb445c3364e0ede19c14d54709d2692e4069
parent88019e64e1de6966c9cfe26beda537664332d7ec (diff)
downloadopenttd-f9cebfcfc407a01c1116208771d289f3017e2cc5.tar.xz
(svn r18967) -Fix (r18966): Never trust your copy&paste skills.
-rw-r--r--src/network/network_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index d14657b5a..6da123303 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -699,7 +699,7 @@ public:
this->SetDirty();
/* FIXME the disabling should go into some InvalidateData, which is called instead of the SetDirty */
- if (!this->IsWidgetDisabled(NGWW_JOIN)) this->OnClick(pt, NGWW_JOIN, 1);
+ if (click_count > 1 && !this->IsWidgetDisabled(NGWW_JOIN)) this->OnClick(pt, NGWW_JOIN, 1);
} break;
case NGWW_LASTJOINED: {
@@ -718,7 +718,7 @@ public:
this->SetDirty();
/* FIXME the disabling should go into some InvalidateData, which is called instead of the SetDirty */
- if (!this->IsWidgetDisabled(NGWW_JOIN)) this->OnClick(pt, NGWW_JOIN, 1);
+ if (click_count > 1 && !this->IsWidgetDisabled(NGWW_JOIN)) this->OnClick(pt, NGWW_JOIN, 1);
}
} break;
@@ -1636,7 +1636,7 @@ struct NetworkLobbyWindow : public Window {
this->SetDirty();
/* FIXME the disabling should go into some InvalidateData, which is called instead of the SetDirty */
- if (!this->IsWidgetDisabled(NLWW_JOIN)) this->OnClick(pt, NLWW_JOIN, 1);
+ if (click_count > 1 && !this->IsWidgetDisabled(NLWW_JOIN)) this->OnClick(pt, NLWW_JOIN, 1);
} break;
case NLWW_JOIN: // Join company