summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-01-04 03:04:19 +0000
committerbelugas <belugas@openttd.org>2008-01-04 03:04:19 +0000
commitb0ef12e0e9955a6ba4d7fd898e0e3ccc7d0720da (patch)
treeb461da82f24a0a61e807d9d7244dbc1b49dd5dd5 /src
parent8f94ac8f032637ba7bd5b4912a27117901ec75b4 (diff)
downloadopenttd-b0ef12e0e9955a6ba4d7fd898e0e3ccc7d0720da.tar.xz
(svn r11752) -Fix(r11745): Silence a MSVC warning (glx)
Diffstat (limited to 'src')
-rw-r--r--src/settings_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index adb111b9d..c932afab2 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -546,7 +546,8 @@ static void GameDifficultyWndProc(Window *w, WindowEvent *e)
const GameSettingData *gsd = &_game_setting_info[i];
value = ((GDType*)&_opt_mod_temp.diff)[i];
- DrawArrowButtons(5, y, 3, HasBit(_difficulty_click_a, i) | HasBit(_difficulty_click_b, i) << 1,
+ DrawArrowButtons(5, y, 3,
+ !!HasBit(_difficulty_click_a, i) | !!HasBit(_difficulty_click_b, i) << 1,
!(HasBit(disabled, i) || gsd->min == value),
!(HasBit(disabled, i) || gsd->max == value));