Hide team icon when player is in TEAM_SPECT and doesn't follow
Till now when player was in TEAM_SPECT and didn't follow (SM_FLY), then wrongly CLA icon was displayed near the radar.
This commit is contained in:
@@ -741,7 +741,7 @@ void drawteamicons(int w, int h, bool spect)
|
||||
glColor3f(1, 1, 1);
|
||||
static Texture *icons = NULL;
|
||||
if(!icons) icons = textureload("packages/misc/teamicons.png", 3);
|
||||
quad(icons->id, VIRTW-VIRTH/12-10, 10, VIRTH/12, team_base(spect ? players[player1->followplayercn]->team : player1->team) ? 0.5f : 0, 0, 0.49f, 1.0f);
|
||||
if(player1->team < TEAM_SPECT || spect) quad(icons->id, VIRTW-VIRTH/12-10, 10, VIRTH/12, team_base(spect ? players[player1->followplayercn]->team : player1->team) ? 0.5f : 0, 0, 0.49f, 1.0f);
|
||||
}
|
||||
|
||||
int damageblendmillis = 0;
|
||||
|
||||
Reference in New Issue
Block a user