diff options
author | glx <glx@openttd.org> | 2010-12-31 16:13:34 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2010-12-31 16:13:34 +0000 |
commit | aa7a587ca35f4c3224f6614afaea61c930453653 (patch) | |
tree | 05faf36b7b08bd989069bf5211d146e42bb69e0c /src/settings_gui.cpp | |
parent | 64c7cc51b5d24b1957ec1c7e8fd919d6783ab543 (diff) | |
download | openttd-aa7a587ca35f4c3224f6614afaea61c930453653.tar.xz |
(svn r21680) -Fix (r21656): of course MSVC complains
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 9ab299594..76b682e8f 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -1153,7 +1153,7 @@ void SettingEntry::DrawSetting(GameSettings *settings_ptr, const SettingDesc *sd if (sdb->cmd == SDT_BOOLX) { static const Colours _bool_ctabs[2][2] = {{COLOUR_CREAM, COLOUR_RED}, {COLOUR_DARK_GREEN, COLOUR_GREEN}}; /* Draw checkbox for boolean-value either on/off */ - bool on = (bool)ReadValue(var, sd->save.conv); + bool on = ReadValue(var, sd->save.conv) != 0; DrawFrameRect(buttons_left, button_y, buttons_left + 19, button_y + 8, _bool_ctabs[!!on][!!editable], on ? FR_LOWERED : FR_NONE); SetDParam(0, on ? STR_CONFIG_SETTING_ON : STR_CONFIG_SETTING_OFF); |