Move r_portal into a class
This commit is contained in:
parent
c2d01522f0
commit
e806b9424c
16 changed files with 179 additions and 144 deletions
|
|
@ -109,13 +109,15 @@ namespace swrenderer
|
|||
{
|
||||
short most[MAXWIDTH];
|
||||
|
||||
R_CreateWallSegmentYSloped(most, curline->frontsector->ceilingplane, &WallC, curline, MirrorFlags & RF_XFLIP);
|
||||
RenderPortal *renderportal = RenderPortal::Instance();
|
||||
|
||||
R_CreateWallSegmentYSloped(most, curline->frontsector->ceilingplane, &WallC, curline, renderportal->MirrorFlags & RF_XFLIP);
|
||||
for (int i = x1; i < x2; ++i)
|
||||
{
|
||||
if (wallupper[i] < most[i])
|
||||
wallupper[i] = most[i];
|
||||
}
|
||||
R_CreateWallSegmentYSloped(most, curline->frontsector->floorplane, &WallC, curline, MirrorFlags & RF_XFLIP);
|
||||
R_CreateWallSegmentYSloped(most, curline->frontsector->floorplane, &WallC, curline, renderportal->MirrorFlags & RF_XFLIP);
|
||||
for (int i = x1; i < x2; ++i)
|
||||
{
|
||||
if (walllower[i] > most[i])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue