summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
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/settings_gui.cpp
parentff76ef6a0a89b4a2e97737f2fb9251d9e5ec854e (diff)
downloadopenttd-6a931d67cdcc98557efeabab4e0337150fab3541.tar.xz
(svn r14390) -Codechange: replace magic constants with symbolic constants.
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r--src/settings_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index aacfeebae..0220bb76b 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -890,8 +890,8 @@ struct PatchesSelectionWindow : Window {
uint32 step = (sdb->interval == 0) ? ((sdb->max - sdb->min) / 50) : sdb->interval;
if (step == 0) step = 1;
- // don't allow too fast scrolling
- if ((this->flags4 & WF_TIMEOUT_MASK) > 2 << WF_TIMEOUT_SHL) {
+ /* don't allow too fast scrolling */
+ if ((this->flags4 & WF_TIMEOUT_MASK) > WF_TIMEOUT_TRIGGER) {
_left_button_clicked = false;
return;
}
@@ -908,7 +908,7 @@ struct PatchesSelectionWindow : Window {
/* Set up scroller timeout for numeric values */
if (value != oldvalue && !(sd->desc.flags & SGF_MULTISTRING)) {
this->click = btn * 2 + 1 + ((x >= 10) ? 1 : 0);
- this->flags4 |= 5 << WF_TIMEOUT_SHL;
+ this->flags4 |= WF_TIMEOUT_BEGIN;
_left_button_clicked = false;
}
} break;
@@ -1168,7 +1168,7 @@ struct CustomCurrencyWindow : Window {
ShowQueryString(str, STR_CURRENCY_CHANGE_PARAMETER, len + 1, 250, this, afilter, QSF_NONE);
}
- this->flags4 |= 5 << WF_TIMEOUT_SHL;
+ this->flags4 |= WF_TIMEOUT_BEGIN;
this->SetDirty();
}