fix int-in-bool-context warning

This commit is contained in:
Andrei "Akari" Alexeyev 2017-07-14 01:29:21 +03:00
parent eaf4a2b6ba
commit aa0c7be815
No known key found for this signature in database
GPG key ID: 048C3D2A5648B785

View file

@ -690,7 +690,7 @@ void draw_options_menu(MenuData *menu) {
char tmp[16]; // who'd use a 16-digit number here anyway?
snprintf(tmp, 16, "%d", bind_getvalue(bind));
draw_text(AL_Right, origin, 20*i, tmp, _fonts.standard);
} else for(j = bind->displaysingle? val : bind->valcount-1; (j+1)*(!bind->displaysingle || j == val); --j) {
} else for(j = bind->displaysingle? val : bind->valcount-1; (j+1) && (!bind->displaysingle || j == val); --j) {
if(j != bind->valcount-1 && !bind->displaysingle)
origin -= stringwidth(bind->values[j+1], _fonts.standard) + 5;