Use <= instead of ==, so that sprites for second-tier portals and beyond still display

thx Red for spotting this
This commit is contained in:
Monster Iestyn 2016-02-06 21:06:52 +00:00
parent 166fafd717
commit ae2b1e8ea1
2 changed files with 2 additions and 2 deletions

View file

@ -675,7 +675,7 @@ typedef struct drawseg_s
INT32 numthicksides;
fixed_t frontscale[MAXVIDWIDTH];
UINT8 portalpass; // if > 0 and == portalrender, do not clip sprites
UINT8 portalpass; // if > 0 and <= portalrender, do not affect sprite clipping
#ifdef ESLOPE
fixed_t maskedtextureheight[MAXVIDWIDTH]; // For handling sloped midtextures

View file

@ -2058,7 +2058,7 @@ void R_ClipSprites(void)
continue;
}
if (ds->portalpass > 0 && ds->portalpass == portalrender)
if (ds->portalpass > 0 && ds->portalpass <= portalrender)
continue; // is a portal
r1 = ds->x1 < spr->x1 ? spr->x1 : ds->x1;