Fix floor / ceiling mark mistake

This commit is contained in:
Jaime Passos 2020-07-22 23:35:39 -03:00
parent ccd095f1bf
commit f83008f673

View file

@ -1549,8 +1549,7 @@ static void R_RenderSegLoop (void)
dc_source = R_GetColumn(toptexture,texturecolumn); dc_source = R_GetColumn(toptexture,texturecolumn);
dc_texheight = textureheight[toptexture]>>FRACBITS; dc_texheight = textureheight[toptexture]>>FRACBITS;
colfunc(); colfunc();
if (!ceilingmarked) ceilingclip[rw_x] = (INT16)mid;
ceilingclip[rw_x] = (INT16)mid;
} }
else if (!ceilingmarked) // entirely off top of screen else if (!ceilingmarked) // entirely off top of screen
ceilingclip[rw_x] = -1; ceilingclip[rw_x] = -1;
@ -1587,8 +1586,7 @@ static void R_RenderSegLoop (void)
texturecolumn); texturecolumn);
dc_texheight = textureheight[bottomtexture]>>FRACBITS; dc_texheight = textureheight[bottomtexture]>>FRACBITS;
colfunc(); colfunc();
if (!floormarked) floorclip[rw_x] = (INT16)mid;
floorclip[rw_x] = (INT16)mid;
} }
else if (!floormarked) // entirely off bottom of screen else if (!floormarked) // entirely off bottom of screen
floorclip[rw_x] = (INT16)viewheight; floorclip[rw_x] = (INT16)viewheight;