diff --git a/src/r_segs.c b/src/r_segs.c
index 120735be3ae2d27646fe27aa5265404c476c883d..a254d43aad7794ed8f0dc0f7d91a58541105a7d2 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;
 				}