(svn r21680) -Fix (r21656): of course MSVC complains
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user