1
0
Fork 0
forked from len0rd/rockbox

Document intentional fallthroughs + fix harmless unintended ones

Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b
This commit is contained in:
Aidan MacDonald 2021-07-24 15:39:01 +01:00
parent ef41cc6623
commit 005c414e5f
24 changed files with 36 additions and 2 deletions

View file

@ -121,6 +121,7 @@ void T_MoveCeiling (ceiling_t* ceiling)
// crushers reverse direction at the top
case silentCrushAndRaise:
S_StartSound((mobj_t *)&ceiling->sector->soundorg,sfx_pstop);
/* fallthrough */
case genSilentCrusher:
case genCrusher:
case fastCrushAndRaise:
@ -177,8 +178,10 @@ void T_MoveCeiling (ceiling_t* ceiling)
// except generalized ones, reset speed, start back up
case silentCrushAndRaise:
S_StartSound((mobj_t *)&ceiling->sector->soundorg,sfx_pstop);
/* fallthrough */
case crushAndRaise:
ceiling->speed = CEILSPEED;
/* fallthrough */
case fastCrushAndRaise:
ceiling->direction = 1;
break;