mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'glance-z-check' into 'master'
Add Z height check to glancing Closes #843 See merge request KartKrew/Kart!2051
This commit is contained in:
commit
5b24319b1e
1 changed files with 1 additions and 0 deletions
|
|
@ -2214,6 +2214,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