summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-09-23 15:24:15 +0000
committerrubidium <rubidium@openttd.org>2008-09-23 15:24:15 +0000
commit6a931d67cdcc98557efeabab4e0337150fab3541 (patch)
tree5750d793f5ad84cfe126c7054b76cb5950f64300 /src/network
parentff76ef6a0a89b4a2e97737f2fb9251d9e5ec854e (diff)
downloadopenttd-6a931d67cdcc98557efeabab4e0337150fab3541.tar.xz
(svn r14390) -Codechange: replace magic constants with symbolic constants.
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 5b8434424..2340bbd0b 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -855,7 +855,7 @@ struct NetworkStartServerWindow : public QueryStringBaseWindow {
case NSSW_COMPANIES_BTND: case NSSW_COMPANIES_BTNU: // Click on up/down button for number of companies
case NSSW_SPECTATORS_BTND: case NSSW_SPECTATORS_BTNU: // Click on up/down button for number of spectators
/* Don't allow too fast scrolling */
- if ((this->flags4 & WF_TIMEOUT_MASK) <= 2 << WF_TIMEOUT_SHL) {
+ if ((this->flags4 & WF_TIMEOUT_MASK) <= WF_TIMEOUT_TRIGGER) {
this->HandleButtonClick(widget);
this->SetDirty();
switch (widget) {