diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 8e5f89a36..c048c7988 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -2357,6 +2357,9 @@ static void HWR_AddLine(seg_t *line) { angle_t angle1, angle2; + // SoM: Backsector needs to be run through R_FakeFlat + static sector_t tempsec; + fixed_t v1x, v1y, v2x, v2y; // the seg's vertexes as fixed_t boolean dont_draw = false; @@ -2413,6 +2416,8 @@ doaddline: } else { + gl_backsector = R_FakeFlat(gl_backsector, &tempsec, NULL, NULL, true); + if (CheckClip(gl_frontsector, gl_backsector)) { gld_clipper_SafeAddClipRange(angle2, angle1); diff --git a/src/r_bsp.c b/src/r_bsp.c index bc8c124ee..427a6367c 100644 --- a/src/r_bsp.c +++ b/src/r_bsp.c @@ -388,6 +388,7 @@ static void R_AddLine(seg_t *line) { INT32 x1, x2; angle_t angle1, angle2, span, tspan; + static sector_t tempsec; g_portal = NULL; @@ -471,6 +472,8 @@ static void R_AddLine(seg_t *line) if (!backsector) goto clipsolid; + backsector = R_FakeFlat(backsector, &tempsec, NULL, NULL, true); + doorclosed = 0; fixed_t frontf1,frontf2, frontc1, frontc2; // front floor/ceiling ends