mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-15 22:21:26 +00:00
Use <= instead of ==, so that sprites for second-tier portals and beyond still display
thx Red for spotting this
This commit is contained in:
parent
166fafd717
commit
ae2b1e8ea1
2 changed files with 2 additions and 2 deletions
|
@ -675,7 +675,7 @@ typedef struct drawseg_s
|
||||||
INT32 numthicksides;
|
INT32 numthicksides;
|
||||||
fixed_t frontscale[MAXVIDWIDTH];
|
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
|
#ifdef ESLOPE
|
||||||
fixed_t maskedtextureheight[MAXVIDWIDTH]; // For handling sloped midtextures
|
fixed_t maskedtextureheight[MAXVIDWIDTH]; // For handling sloped midtextures
|
||||||
|
|
|
@ -2058,7 +2058,7 @@ void R_ClipSprites(void)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ds->portalpass > 0 && ds->portalpass == portalrender)
|
if (ds->portalpass > 0 && ds->portalpass <= portalrender)
|
||||||
continue; // is a portal
|
continue; // is a portal
|
||||||
|
|
||||||
r1 = ds->x1 < spr->x1 ? spr->x1 : ds->x1;
|
r1 = ds->x1 < spr->x1 ? spr->x1 : ds->x1;
|
||||||
|
|
Loading…
Reference in a new issue