]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Sbar_UpdateScoreboard was totally unused in quake, it's history (as are the arrays...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Jun 2003 04:19:09 +0000 (04:19 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Jun 2003 04:19:09 +0000 (04:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3080 d7cf8633-e32d-0410-b094-e92efae38249

sbar.c

diff --git a/sbar.c b/sbar.c
index 77fd4586b532171963f8a9f74ef8d9088ac2ebcd..0f905e838c58586e6e8fac092093896c1117b02d 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -346,19 +346,14 @@ 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;
 
 /*
 ===============
 Sbar_SortFrags
 ===============
 */
+static int fragsort[MAX_SCOREBOARD];
+static int scoreboardlines;
 void Sbar_SortFrags (void)
 {
        int             i, j, k;
@@ -384,36 +379,6 @@ void Sbar_SortFrags (void)
                        }
 }
 
-/*
-===============
-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