From 69b43aee2dd27e1d1f89f6ac593fae2fa21a2633 Mon Sep 17 00:00:00 2001
From: Monster Iestyn <iestynjealous@ntlworld.com>
Date: Wed, 20 Apr 2016 20:26:41 +0100
Subject: [PATCH] Fix how FF_CUTEXTRA FOFs carry over cutting ability to FOFs
 below them in the same sector, even if they shouldn't do that

---
 src/r_segs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/r_segs.c b/src/r_segs.c
index d656108f6..ff8de7cac 100644
--- a/src/r_segs.c
+++ b/src/r_segs.c
@@ -927,6 +927,8 @@ void R_RenderThickSideRange(drawseg_t *ds, INT32 x1, INT32 x2, ffloor_t *pfloor)
 						}
 					}
 
+					solid = 0; // don't carry over solid-cutting flag from the previous light
+
 					// Check if the current light can cut the current 3D floor.
 					if (rlight->flags & FF_CUTSOLIDS && !(pfloor->flags & FF_EXTRA))
 						solid = 1;
-- 
GitLab