Skip to content

Commit

Permalink
remove dead procedure Sbar_UpdateScoreboard and its related globals
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Aug 18, 2023
1 parent 92594e2 commit 6a9f865
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions Quake/sbar.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,6 @@ void Sbar_DrawNum (int x, int y, int num, int digits, int color)

int fragsort[MAX_SCOREBOARD];

char scoreboardtext[MAX_SCOREBOARD][20];
int scoreboardtop[MAX_SCOREBOARD];
int scoreboardbottom[MAX_SCOREBOARD];
int scoreboardcount[MAX_SCOREBOARD];
int scoreboardlines;

/*
Expand Down Expand Up @@ -459,35 +455,6 @@ int Sbar_ColorForMap (int m)
return m < 128 ? m + 8 : m + 8;
}

/*
===============
Sbar_UpdateScoreboard
===============
*/
void Sbar_UpdateScoreboard (void)
{
int i, k;
int top, bottom;
scoreboard_t *s;

Sbar_SortFrags ();

// draw the text
memset (scoreboardtext, 0, sizeof(scoreboardtext));

for (i = 0; i < scoreboardlines; i++)
{
k = fragsort[i];
s = &cl.scores[k];
sprintf (&scoreboardtext[i][1], "%3i %s", s->frags, s->name);

top = s->colors & 0xf0;
bottom = (s->colors & 15) <<4;
scoreboardtop[i] = Sbar_ColorForMap (top);
scoreboardbottom[i] = Sbar_ColorForMap (bottom);
}
}

/*
===============
Sbar_SoloScoreboard -- johnfitz -- new layout
Expand Down

0 comments on commit 6a9f865

Please sign in to comment.