From 09c03151db3269a8cb7ec9041a67e815d717b2cb Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 20 Dec 2017 08:35:49 +0000 Subject: [PATCH] Uncomment extra check in COMBINE_STRIPS git-svn-id: https://svn.eduke32.com/eduke32@6573 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/polymost.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index b0b259a53..5febe981a 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -2445,8 +2445,8 @@ skip: ; int const ni = vsp[i].n; - if ((vsp[i].ctag == vsp[ni].ctag) && (vsp[i].ftag == vsp[ni].ftag) /*&& - ((vsp[i].cy[1] <= vsp[ni].cy[1]) || (vsp[i].fy[1] <= vsp[ni].fy[1]))*/) + if ((vsp[i].ctag == vsp[ni].ctag) && (vsp[i].ftag == vsp[ni].ftag) && + ((vsp[i].cy[1] <= vsp[ni].cy[1]) || (vsp[i].fy[1] <= vsp[ni].fy[1]))) { vsp[i].cy[1] = vsp[ni].cy[1]; vsp[i].fy[1] = vsp[ni].fy[1]; @@ -3836,11 +3836,12 @@ void polymost_scansector(int32_t sectnum) gotsector[sectnum>>3] |= pow2char[sectnum&7]; int const bunchfrst = numbunches; - int const numscansbefore = numscans; - + int const onumscans = numscans; int const startwall = sector[sectnum].wallptr; - int const endwall = sector[sectnum].wallnum+startwall; + int const endwall = sector[sectnum].wallnum + startwall; + int scanfirst = numscans; + vec2f_t p2 = { 0, 0 }; uwalltype *wal; @@ -3848,9 +3849,10 @@ void polymost_scansector(int32_t sectnum) for (z=startwall,wal=(uwalltype *)&wall[z]; zpoint2]; - vec2f_t const fp1 = { (float)(wal->x-globalposx), (float)(wal->y-globalposy) }; - vec2f_t const fp2 = { (float)(wal2->x-globalposx), (float)(wal2->y-globalposy) }; + uwalltype const *const wal2 = (uwalltype *)&wall[wal->point2]; + + vec2f_t const fp1 = { (float)(wal->x - globalposx), (float)(wal->y - globalposy) }; + vec2f_t const fp2 = { (float)(wal2->x - globalposx), (float)(wal2->y - globalposy) }; int const nextsectnum = wal->nextsector; //Scan close sectors @@ -3905,7 +3907,7 @@ void polymost_scansector(int32_t sectnum) } } - for (bssize_t z=numscansbefore; z dxb1[bunchp2[z]])) {