Skip to content

Commit

Permalink
HUD: Remove failed ServeMe connections from playerlist
Browse files Browse the repository at this point in the history
Eugh eugh eugh eugh eugh
  • Loading branch information
meag committed Nov 7, 2018
1 parent c729dd9 commit dfd6dd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hud_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -2428,6 +2428,10 @@ static void HUD_Sort_Scoreboard(int flags)

for (i=0; i < MAX_CLIENTS; i++) {
if (cl.players[i].name[0] && !cl.players[i].spectator) {
if (cl.players[i].frags == 0 && cl.players[i].team[0] == '\0' && !strcmp(cl.players[i].name, "[ServeMe]")) {
continue;
}

// Find players team
for (team = 0; team < n_teams; team++) {
if (cl.teamplay && !strcmp(cl.players[i].team, sorted_teams[team].name) && sorted_teams[team].name[0]) {
Expand Down

0 comments on commit dfd6dd1

Please sign in to comment.