1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 09:59:10 +00:00

(svn r11752) -Fix(r11745): Silence a MSVC warning (glx)

This commit is contained in:
belugas
2008-01-04 03:04:19 +00:00
parent 8f94ac8f03
commit b0ef12e0e9

View File

@@ -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));