diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-07-24 15:39:01 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-08-04 18:59:46 +0000 |
commit | 005c414e5f2a0ace3756da767d3920ac98cb5c76 (patch) | |
tree | 73b17f1e733ffb64a475657eefa21b17ac1ff7b9 /apps/plugins/doom/p_ceilng.c | |
parent | ef41cc6623226f3ce7630211ef88640a48fb8e59 (diff) | |
download | rockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.tar.gz rockbox-005c414e5f2a0ace3756da767d3920ac98cb5c76.zip |
Document intentional fallthroughs + fix harmless unintended ones
Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b
Diffstat (limited to 'apps/plugins/doom/p_ceilng.c')
-rw-r--r-- | apps/plugins/doom/p_ceilng.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugins/doom/p_ceilng.c b/apps/plugins/doom/p_ceilng.c index db5a701b1a..f83bdc0260 100644 --- a/apps/plugins/doom/p_ceilng.c +++ b/apps/plugins/doom/p_ceilng.c | |||
@@ -121,6 +121,7 @@ void T_MoveCeiling (ceiling_t* ceiling) | |||
121 | // crushers reverse direction at the top | 121 | // crushers reverse direction at the top |
122 | case silentCrushAndRaise: | 122 | case silentCrushAndRaise: |
123 | S_StartSound((mobj_t *)&ceiling->sector->soundorg,sfx_pstop); | 123 | S_StartSound((mobj_t *)&ceiling->sector->soundorg,sfx_pstop); |
124 | /* fallthrough */ | ||
124 | case genSilentCrusher: | 125 | case genSilentCrusher: |
125 | case genCrusher: | 126 | case genCrusher: |
126 | case fastCrushAndRaise: | 127 | case fastCrushAndRaise: |
@@ -177,8 +178,10 @@ void T_MoveCeiling (ceiling_t* ceiling) | |||
177 | // except generalized ones, reset speed, start back up | 178 | // except generalized ones, reset speed, start back up |
178 | case silentCrushAndRaise: | 179 | case silentCrushAndRaise: |
179 | S_StartSound((mobj_t *)&ceiling->sector->soundorg,sfx_pstop); | 180 | S_StartSound((mobj_t *)&ceiling->sector->soundorg,sfx_pstop); |
181 | /* fallthrough */ | ||
180 | case crushAndRaise: | 182 | case crushAndRaise: |
181 | ceiling->speed = CEILSPEED; | 183 | ceiling->speed = CEILSPEED; |
184 | /* fallthrough */ | ||
182 | case fastCrushAndRaise: | 185 | case fastCrushAndRaise: |
183 | ceiling->direction = 1; | 186 | ceiling->direction = 1; |
184 | break; | 187 | break; |