summaryrefslogtreecommitdiff
path: root/apps/plugins/bubbles.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-07-24 15:39:01 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-08-04 18:59:46 +0000
commit005c414e5f2a0ace3756da767d3920ac98cb5c76 (patch)
tree73b17f1e733ffb64a475657eefa21b17ac1ff7b9 /apps/plugins/bubbles.c
parentef41cc6623226f3ce7630211ef88640a48fb8e59 (diff)
downloadrockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.tar.gz
rockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.zip
Document intentional fallthroughs + fix harmless unintended ones
Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b
Diffstat (limited to 'apps/plugins/bubbles.c')
-rw-r--r--apps/plugins/bubbles.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c
index ffc814e7a0..88d7228d72 100644
--- a/apps/plugins/bubbles.c
+++ b/apps/plugins/bubbles.c
@@ -76,7 +76,7 @@ enum {
76#endif 76#endif
77 77
78#define ANGLE_STEP 2 78#define ANGLE_STEP 2
79#define ANGLE_STEP_REP 4 79#define ANGLE_STEP_REP 6
80 80
81#define BUBBLES_QUIT1 PLA_EXIT 81#define BUBBLES_QUIT1 PLA_EXIT
82#define BUBBLES_QUIT2 PLA_CANCEL 82#define BUBBLES_QUIT2 PLA_CANCEL
@@ -2367,12 +2367,14 @@ static int bubbles_handlebuttons(struct game_context* bb, bool animblock,
2367 switch(button){ 2367 switch(button){
2368 case BUBBLES_LEFT_REP: 2368 case BUBBLES_LEFT_REP:
2369 if(bb->angle > MIN_ANGLE) bb->angle -= ANGLE_STEP_REP; 2369 if(bb->angle > MIN_ANGLE) bb->angle -= ANGLE_STEP_REP;
2370 break;
2370 case BUBBLES_LEFT: /* change angle to the left */ 2371 case BUBBLES_LEFT: /* change angle to the left */
2371 if(bb->angle > MIN_ANGLE) bb->angle -= ANGLE_STEP; 2372 if(bb->angle > MIN_ANGLE) bb->angle -= ANGLE_STEP;
2372 break; 2373 break;
2373 2374
2374 case BUBBLES_RIGHT_REP: 2375 case BUBBLES_RIGHT_REP:
2375 if(bb->angle < MAX_ANGLE) bb->angle += ANGLE_STEP_REP; 2376 if(bb->angle < MAX_ANGLE) bb->angle += ANGLE_STEP_REP;
2377 break;
2376 case BUBBLES_RIGHT: /* change angle to the right */ 2378 case BUBBLES_RIGHT: /* change angle to the right */
2377 if(bb->angle < MAX_ANGLE) bb->angle += ANGLE_STEP; 2379 if(bb->angle < MAX_ANGLE) bb->angle += ANGLE_STEP;
2378 break; 2380 break;