mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-24 01:40:00 +00:00
fix render poly bug
This commit is contained in:
parent
18647717df
commit
0d8fcb41ee
|
@ -908,8 +908,13 @@ CRenderer::ScanSectorPoly(RwV2d *poly, int32 numVertices, void (*scanfunc)(CPtrL
|
||||||
a2 = i;
|
a2 = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
y = Floor(miny);
|
||||||
|
yend = Floor(maxy);
|
||||||
|
#else
|
||||||
y = miny;
|
y = miny;
|
||||||
yend = maxy;
|
yend = maxy;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Go left in poly to find first edge b
|
// Go left in poly to find first edge b
|
||||||
b2 = a2;
|
b2 = a2;
|
||||||
|
@ -947,8 +952,8 @@ CRenderer::ScanSectorPoly(RwV2d *poly, int32 numVertices, void (*scanfunc)(CPtrL
|
||||||
while(y <= yend && y < NUMSECTORS_Y){
|
while(y <= yend && y < NUMSECTORS_Y){
|
||||||
// scan one x-line
|
// scan one x-line
|
||||||
if(y >= 0 && xstart < NUMSECTORS_X)
|
if(y >= 0 && xstart < NUMSECTORS_X)
|
||||||
for(x = xstart; x <= xend; x++)
|
for(x = xstart; x <= xend && x != NUMSECTORS_X; x++)
|
||||||
if(x >= 0 && x != NUMSECTORS_X)
|
if(x >= 0)
|
||||||
scanfunc(CWorld::GetSector(x, y)->m_lists);
|
scanfunc(CWorld::GetSector(x, y)->m_lists);
|
||||||
|
|
||||||
// advance one scan line
|
// advance one scan line
|
||||||
|
|
Loading…
Reference in a new issue