From a206a830206b511c4db4b52885246ae8bfbd5fd6 Mon Sep 17 00:00:00 2001 From: terminx Date: Mon, 4 Mar 2019 23:48:55 +0000 Subject: [PATCH] This seems to help with some polygon drawing issues in Polymost for now git-svn-id: https://svn.eduke32.com/eduke32@7388 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/polymost.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index ea8c0f064..673df626d 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -3507,7 +3507,7 @@ static inline void vsp_finalize_init(int32_t const vcnt) } #define COMBINE_STRIPS -#define COMBINE_STRIPS_IS_STILL_BUGGED +// #define COMBINE_STRIPS_IS_STILL_BUGGED #ifdef COMBINE_STRIPS static inline void vsdel(int32_t const i) @@ -3791,9 +3791,9 @@ skip: ; #ifdef COMBINE_STRIPS int i = vsp[0].n; - while (i) + do { - if ((vsp[i].cy[0] >= vsp[i].fy[0]) && (vsp[i].cy[1] >= vsp[i].fy[1])) + if ((vsp[i].cy[0]+DOMOST_OFFSET >= vsp[i].fy[0]) && (vsp[i].cy[1]+DOMOST_OFFSET >= vsp[i].fy[1])) vsp[i].ctag = vsp[i].ftag = -1; int const ni = vsp[i].n; @@ -3810,6 +3810,7 @@ skip: ; } else i = ni; } + while (i); #endif }