summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-12-17 20:52:07 +0000
committerfrosch <frosch@openttd.org>2011-12-17 20:52:07 +0000
commit4e4a87bd3c15da581b82549cd38451df20e7687d (patch)
treea27895031daa87ca0b9c55f60eb5e20de50d996d /src/network
parent82469946ab01a7f67f2fc28c3b53879101c582b5 (diff)
downloadopenttd-4e4a87bd3c15da581b82549cd38451df20e7687d.tar.xz
(svn r23579) -Fix (r23525): Most up/down arrows stopped working.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index d4794da33..3d84bd373 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -1087,7 +1087,7 @@ struct NetworkStartServerWindow : public QueryStringBaseWindow {
case WID_NSS_COMPANIES_BTND: case WID_NSS_COMPANIES_BTNU: // Click on up/down button for number of companies
case WID_NSS_SPECTATORS_BTND: case WID_NSS_SPECTATORS_BTNU: // Click on up/down button for number of spectators
/* Don't allow too fast scrolling */
- if ((this->flags & WF_TIMEOUT) && this->timeout_timer <= 1) {
+ if (!(this->flags & WF_TIMEOUT) || this->timeout_timer <= 1) {
this->HandleButtonClick(widget);
this->SetDirty();
switch (widget) {