Skip to content

Commit

Permalink
cgame: fixed fireteam icon visible when not in FT, refs #1271
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarquis committed Apr 30, 2020
1 parent eb83698 commit e92ae8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cgame/cg_players.c
Expand Up @@ -2118,7 +2118,8 @@ static void CG_PlayerSprites(centity_t *cent)
}
}

if (CG_IsOnFireteam(cent->currentState.number) == CG_IsOnFireteam(cg.clientNum))
if (CG_IsOnFireteam(cent->currentState.number) &&
CG_IsOnFireteam(cent->currentState.number) == CG_IsOnFireteam(cg.clientNum))
{
CG_PlayerFloatSprite(cent, cgs.media.fireteamIcon, height, numIcons++);
}
Expand Down

0 comments on commit e92ae8f

Please sign in to comment.