mirror of https://github.com/OpenTTD/OpenTTD
(svn r11752) -Fix(r11745): Silence a MSVC warning (glx)
parent
8f94ac8f03
commit
b0ef12e0e9
|
@ -546,7 +546,8 @@ static void GameDifficultyWndProc(Window *w, WindowEvent *e)
|
||||||
const GameSettingData *gsd = &_game_setting_info[i];
|
const GameSettingData *gsd = &_game_setting_info[i];
|
||||||
value = ((GDType*)&_opt_mod_temp.diff)[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->min == value),
|
||||||
!(HasBit(disabled, i) || gsd->max == value));
|
!(HasBit(disabled, i) || gsd->max == value));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue