mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 03:51:50 +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)
|
if (!podiumspecial)
|
||||||
{
|
{
|
||||||
distance = R_PointToDist2(glancePlayer->mo->x, glancePlayer->mo->y, victim->x, victim->y);
|
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)
|
if (distance > maxdistance)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue