Add Z height check to glancing

This commit is contained in:
James R 2024-03-08 08:29:23 -08:00
parent 266e36928b
commit 3aee4b1ac2

View file

@ -2212,6 +2212,7 @@ static SINT8 K_GlanceAtPlayers(player_t *glancePlayer, boolean horn)
if (!podiumspecial)
{
distance = R_PointToDist2(glancePlayer->mo->x, glancePlayer->mo->y, victim->x, victim->y);
distance = R_PointToDist2(0, glancePlayer->mo->z, distance, victim->z);
if (distance > maxdistance)
{