From 005c414e5f2a0ace3756da767d3920ac98cb5c76 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 24 Jul 2021 15:39:01 +0100 Subject: Document intentional fallthroughs + fix harmless unintended ones Change-Id: I1ca5b1027ec30cbf61093bab35b980196ed14e6b --- apps/plugins/doom/p_ceilng.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/plugins/doom/p_ceilng.c') 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) // 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; -- cgit v1.2.3