//=============================================================================
-int fragsort[MAX_SCOREBOARD];
-
-char scoreboardtext[MAX_SCOREBOARD][20];
-int scoreboardtop[MAX_SCOREBOARD];
-int scoreboardbottom[MAX_SCOREBOARD];
-int scoreboardcount[MAX_SCOREBOARD];
-int scoreboardlines;
/*
===============
Sbar_SortFrags
===============
*/
+static int fragsort[MAX_SCOREBOARD];
+static int scoreboardlines;
void Sbar_SortFrags (void)
{
int i, j, k;
}
}
-/*
-===============
-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] = top + 8;
- scoreboardbottom[i] = bottom + 8;
- }
-}
-
-
/*
===============
Sbar_SoloScoreboard