mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-11 09:12:22 +00:00
Add Z height check to glancing
This commit is contained in:
parent
266e36928b
commit
3aee4b1ac2
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue