Fixed skybox clipping: lines in a skybox shouldn't be clipped against current portal

This commit is contained in:
ZZYZX 2016-01-10 05:22:33 +02:00
commit 4d518a220c
6 changed files with 19 additions and 38 deletions

View file

@ -659,7 +659,7 @@ void R_HighlightPortal (PortalDrawseg* pds)
void R_EnterPortal (PortalDrawseg* pds, int depth)
{
// [ZZ] check depth. fill portal with black if it's exceeding the visual recursion limit, and continue like nothing happened.
if (depth > r_portal_recursions)
if (depth >= r_portal_recursions)
{
BYTE color = (BYTE)BestColor((DWORD *)GPalette.BaseColors, 0, 0, 0, 0, 255);
int spacing = RenderTarget->GetPitch();