Bit of readability

This commit is contained in:
Simon 2010-12-30 10:04:20 +00:00
parent b92e6b391f
commit e8c6b37550

View File

@ -2074,13 +2074,16 @@ int main(int argc, char *argv[])
}
if(x>=(XRES+BARSIZE-(510-476)) && x<=(XRES+BARSIZE-(510-491)) && !bq)
{
if(b & SDL_BUTTON_LMASK)
if(b & SDL_BUTTON_LMASK){
set_cmode((cmode+1) % CM_COUNT);
if(b & SDL_BUTTON_RMASK)
if((cmode+(CM_COUNT-1)) % CM_COUNT == CM_LIFE)
set_cmode(CM_GRAD);
else
set_cmode((cmode+(CM_COUNT-1)) % CM_COUNT);
}
if(b & SDL_BUTTON_RMASK){
if((cmode+(CM_COUNT-1)) % CM_COUNT == CM_LIFE) {
set_cmode(CM_GRAD);
} else {
set_cmode((cmode+(CM_COUNT-1)) % CM_COUNT);
}
}
save_presets(0);
}
if(x>=(XRES+BARSIZE-(510-494)) && x<=(XRES+BARSIZE-(510-509)) && !bq)