From e4975c522b5cf51b441c79c3711c16046dd0ca97 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 8 Apr 2019 06:28:26 +0000 Subject: [PATCH] SW: Fix -Wimplicit-fallthrough git-svn-id: https://svn.eduke32.com/eduke32@7533 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/sw/src/draw.cpp | 6 ++---- source/sw/src/jnstub.cpp | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/source/sw/src/draw.cpp b/source/sw/src/draw.cpp index 943efdac8..a58e4408a 100644 --- a/source/sw/src/draw.cpp +++ b/source/sw/src/draw.cpp @@ -272,12 +272,11 @@ DoShadowFindGroundPoint(uspritetype * sp) loz = DoShadowFindGroundPoint(sp); hsp->cstat = bak_cstat; } + break; } case HIT_SECTOR: - { - return loz; - } + break; default: ASSERT(TRUE == FALSE); @@ -285,7 +284,6 @@ DoShadowFindGroundPoint(uspritetype * sp) } return loz; - } #if 0 diff --git a/source/sw/src/jnstub.cpp b/source/sw/src/jnstub.cpp index 577a5c7ce..198fd1085 100644 --- a/source/sw/src/jnstub.cpp +++ b/source/sw/src/jnstub.cpp @@ -1125,6 +1125,7 @@ Keys3D(void) sector[currsector].ceilingpicnum = temppicnum; } } + break; case 2: searchpicnum = sector[searchsector].floorpicnum; if (highlightsectorcnt <= 0)