Fixed sprite clipping with drawsegs (removed unnecessary portal check)

This commit is contained in:
ZZYZX 2014-12-16 21:31:21 +02:00
commit 29880026a6
4 changed files with 64 additions and 33 deletions

View file

@ -2121,8 +2121,10 @@ void R_DrawSprite (vissprite_t *spr)
for (ds = ds_p; ds-- > firstdrawseg; ) // new -- killough
{
// [ZZ] portal handling here
if (ds->CurrentPortalUniq != spr->CurrentPortalUniq)
continue;
//if (ds->CurrentPortalUniq != spr->CurrentPortalUniq)
// continue;
// [ZZ] WARNING: uncommenting the two above lines, totally breaks sprite clipping
// kg3D - no clipping on fake segs
if (ds->fake) continue;
// determine if the drawseg obscures the sprite