fix polyobjects

lululu oops
This commit is contained in:
Alug committed 2025-07-23 22:36:56 +02:00
1 parent 0c58228c21
commit ff41198bce
1 file changed
+10
+10
View File
@@ -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);