summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2010-12-30 19:59:39 (GMT)
committer Cracker64 <cracker642@gmail.com>2010-12-30 19:59:39 (GMT)
commit8604d27c7a4a442140d725be44bca7fc05cd7884 (patch)
tree054457cd47f742cdc332400e57fe70f9824dc775 /src/main.c
parent2212d04fb035ec9e29d27ac8c0d818c83a5f3782 (diff)
downloadpowder-8604d27c7a4a442140d725be44bca7fc05cd7884.zip
powder-8604d27c7a4a442140d725be44bca7fc05cd7884.tar.gz
simon updates, and SING improvements
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 21e8a47..59fcea4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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)