From 857cd3236954366c75f1ce0ee99b56a184d29d47 Mon Sep 17 00:00:00 2001
From: Monster Iestyn <iestynjealous@ntlworld.com>
Date: Thu, 5 May 2016 17:49:57 +0100
Subject: [PATCH] step through light heights too if there is an overflow for a
 midtexture column

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

diff --git a/src/r_segs.c b/src/r_segs.c
index 120735be3a..a254d43aad 100644
--- a/src/r_segs.c
+++ b/src/r_segs.c
@@ -529,6 +529,14 @@ void R_RenderMaskedSegRange(drawseg_t *ds, INT32 x1, INT32 x2)
 				if ((UINT64)overflow_test&0xFFFFFFFF80000000ULL)
 				{
 					// Eh, no, go away, don't waste our time
+					if (dc_numlights)
+					{
+						for (i = 0; i < dc_numlights; i++)
+						{
+							rlight = &dc_lightlist[i];
+							rlight->height += rlight->heightstep;
+						}
+					}
 					spryscale += rw_scalestep;
 					continue;
 				}
-- 
GitLab