Fix fallthrough warning in ntmap.cpp [SDL only]

This commit is contained in:
Kp 2019-07-07 22:00:02 +00:00
parent 8d349dd0c1
commit 867223556c

View file

@ -843,12 +843,17 @@ void draw_tmap(grs_canvas &canvas, const grs_bitmap &rbp, uint_fast32_t nverts,
switch (Interpolation_method) { // 0 = choose, 1 = linear, 2 = /8 perspective, 3 = full perspective
case 0: // choose best interpolation
if (Current_seg_depth > Max_perspective_depth)
{
case 1: // linear interpolation
ntexture_map_lighted_linear(*bp, Tmap1);
}
else
{
DXX_BOOST_FALLTHROUGH;
case 2: // perspective every 8th pixel interpolation
case 3: // perspective every pixel interpolation
ntexture_map_lighted(*bp, Tmap1);
}
break;
default:
Assert(0); // Illegal value for Interpolation_method, must be 0,1,2,3