From ff41198bcec77259bf407ce3b1da7fc0d9867ee6 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 23 Jul 2025 21:14:48 +0200 Subject: [PATCH] fix polyobjects lululu oops --- src/hardware/hw_bsp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/hardware/hw_bsp.c b/src/hardware/hw_bsp.c index 0054269b2..6ce93b317 100644 --- a/src/hardware/hw_bsp.c +++ b/src/hardware/hw_bsp.c @@ -2886,6 +2886,11 @@ static void AdjustSegs(void) polyvertex_t sv1, sv2; // seg v1, v2 float distv1,distv2,tmp; + // Don't touch polyobject segs. We'll compensate + // for this when we go about drawing them. + if (lseg->polyseg) + continue; + line_t *line = lseg->linedef; if (!line) @@ -3015,6 +3020,11 @@ static void AdjustSegs(void) { lseg = &segs[j]; + // Don't touch polyobject segs. We'll compensate + // for this when we go about drawing them. + if (lseg->polyseg) + continue; + if (!(lseg->pv1 && lseg->pv2)) { CONS_Debug(DBG_RENDER, "Seg %i, not in any polygon.\n", j);