HWR_Subsector: avoid calling HWR_AddSprites on already processed sectors

7cf3bceaff
This commit is contained in:
NepDisk 2025-11-29 16:49:34 -05:00
parent 609defe7f8
commit 116407f68a

View file

@ -2855,9 +2855,12 @@ static void HWR_Subsector(size_t num)
// hurdler: faux: on ajoute seulement les sprites, le murs sont trac<61> d'abord
if (line)
{
// draw sprites first, coz they are clipped to the solidsegs of
// subsectors more 'in front'
HWR_AddSprites(gl_frontsector);
if (sub->sector->validcount != validcount)
{
// draw sprites first, coz they are clipped to the solidsegs of
// subsectors more 'in front'
HWR_AddSprites(gl_frontsector);
}
//Hurdler: at this point validcount must be the same, but is not because
// gl_frontsector doesn't point anymore to sub->sector due to