ZDoom wasn't setting drawseg_t::curline when making "fake" drawseg for skyboxes, which interfered with portal sprite clipping routine randomly.

This commit is contained in:
ZZYZX 2015-11-12 01:17:03 +02:00
commit 75d21d6dd8
2 changed files with 2 additions and 4 deletions

View file

@ -322,11 +322,8 @@ nextpost:
//
bool R_ClipSpriteColumnWithPortals (fixed_t x, fixed_t y, vissprite_t* spr)
{
size_t numdrawsegs = ds_p-firstdrawseg;
for (int i = (int)numdrawsegs-1; i >= 0; i--)
for (drawseg_t* seg = ds_p; seg-- > firstdrawseg; ) // copied code from killough below
{
drawseg_t* seg = &firstdrawseg[i];
// ignore segs from other portals
if (seg->CurrentPortalUniq != CurrentPortalUniq)
continue;