Skip to content

Commit

Permalink
Don't print ally name when pointing at yourself
Browse files Browse the repository at this point in the history
  • Loading branch information
Evghenii committed Nov 18, 2024
1 parent f3ff108 commit 6fbc82e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/g_shared/shared_sbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ void DBaseStatusBar::DrawTargetName ()

// Search for a player directly in front of the camera. If none are found, exit.
pTargetPlayer = P_PlayerScan( camera );
if ( pTargetPlayer == NULL )
if ( pTargetPlayer == NULL || pTargetPlayer == &players[consoleplayer] )
return;

// [CK] If the player shouldn't be identified from decorate flags, ignore them
Expand Down

0 comments on commit 6fbc82e

Please sign in to comment.