Move r_portal into a class

This commit is contained in:
Magnus Norddahl 2017-01-05 04:55:26 +01:00
commit e806b9424c
16 changed files with 179 additions and 144 deletions

View file

@ -93,7 +93,8 @@ namespace swrenderer
ystep = -sin(planeang) / FocalLengthX;
// [RH] flip for mirrors
if (MirrorFlags & RF_XFLIP)
RenderPortal *renderportal = RenderPortal::Instance();
if (renderportal->MirrorFlags & RF_XFLIP)
{
xstep = -xstep;
ystep = -ystep;