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
This commit is contained in:
terminx 2019-03-04 23:48:55 +00:00
parent b72dec2940
commit a206a83020

View file

@ -3507,7 +3507,7 @@ static inline void vsp_finalize_init(int32_t const vcnt)
} }
#define COMBINE_STRIPS #define COMBINE_STRIPS
#define COMBINE_STRIPS_IS_STILL_BUGGED // #define COMBINE_STRIPS_IS_STILL_BUGGED
#ifdef COMBINE_STRIPS #ifdef COMBINE_STRIPS
static inline void vsdel(int32_t const i) static inline void vsdel(int32_t const i)
@ -3791,9 +3791,9 @@ skip: ;
#ifdef COMBINE_STRIPS #ifdef COMBINE_STRIPS
int i = vsp[0].n; 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; vsp[i].ctag = vsp[i].ftag = -1;
int const ni = vsp[i].n; int const ni = vsp[i].n;
@ -3810,6 +3810,7 @@ skip: ;
} }
else i = ni; else i = ni;
} }
while (i);
#endif #endif
} }