sprite gzt is float in opengl render........

This commit is contained in:
Alug 2025-11-27 18:57:12 +01:00 committed by GenericHeroGuy
parent 55106624fb
commit 363324791f

View file

@ -5073,16 +5073,17 @@ static void HWR_ProjectSprite(mobj_t *thing)
if (heightsec != -1 && phs != -1) // only clip things which are in special sectors
{
fixed_t secheight;
const fixed_t fgzt = FloatToFixed(gzt);
secheight = P_GetSectorFloorZAt(&sectors[heightsec], viewx, viewy);
if (viewz < P_GetSectorFloorZAt(&sectors[phs], interp.x, interp.y) ?
interp.z >= secheight :
gzt < secheight)
fgzt < secheight)
return;
secheight = P_GetSectorCeilingZAt(&sectors[heightsec], viewx, viewy);
if (viewz > P_GetSectorCeilingZAt(&sectors[phs], interp.x, interp.y) ?
gzt < secheight && viewz >= secheight :
fgzt < secheight && viewz >= secheight :
interp.z >= secheight)
return;
}