Nametag sightofline fix

This commit is contained in:
NepDisk authored and Alug committed 2024-02-19 20:36:12 +01:00
1 parent 6fede1a564
commit 23ad0746f1
1 file changed
+1 -1
+1 -1
View File
@@ -9062,7 +9062,7 @@ static void K_drawNameTags(void)
an = R_PointToAngle2(camera[0].x, camera[0].y, players[i].mo->x, players[i].mo->y) - camera[0].angle;
if (an > ANGLE_90 && an < ANGLE_270)
continue; // behind back
if (!P_CheckSight(players[i].mo, stplyr->mo))
if (!P_CheckSight(stplyr->mo, players[i].mo))
continue;
tagsdisplayed += 1;