//=============================================================================
-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
continue;
// draw background
- c = (qbyte *)&d_8to24table[(s->colors & 0xf0) + 8];
+ c = (qbyte *)&palette_complete[(s->colors & 0xf0) + 8];
DrawQ_Fill (sbar_x + x + 10, sbar_y - 23, 28, 4, c[0] * (1.0f / 255.0f), c[1] * (1.0f / 255.0f), c[2] * (1.0f / 255.0f), c[3] * (1.0f / 255.0f), 0);
- c = (qbyte *)&d_8to24table[((s->colors & 15)<<4) + 8];
+ c = (qbyte *)&palette_complete[((s->colors & 15)<<4) + 8];
DrawQ_Fill (sbar_x + x + 10, sbar_y + 4 - 23, 28, 3, c[0] * (1.0f / 255.0f), c[1] * (1.0f / 255.0f), c[2] * (1.0f / 255.0f), c[3] * (1.0f / 255.0f), 0);
// draw number
s = &cl.scores[cl.viewentity - 1];
// draw background
Sbar_DrawPic (112, 0, rsb_teambord);
- c = (qbyte *)&d_8to24table[(s->colors & 0xf0) + 8];
+ c = (qbyte *)&palette_complete[(s->colors & 0xf0) + 8];
DrawQ_Fill (sbar_x + 113, vid.conheight-SBAR_HEIGHT+3, 22, 9, c[0] * (1.0f / 255.0f), c[1] * (1.0f / 255.0f), c[2] * (1.0f / 255.0f), c[3] * (1.0f / 255.0f), 0);
- c = (qbyte *)&d_8to24table[((s->colors & 15)<<4) + 8];
+ c = (qbyte *)&palette_complete[((s->colors & 15)<<4) + 8];
DrawQ_Fill (sbar_x + 113, vid.conheight-SBAR_HEIGHT+12, 22, 9, c[0] * (1.0f / 255.0f), c[1] * (1.0f / 255.0f), c[2] * (1.0f / 255.0f), c[3] * (1.0f / 255.0f), 0);
// draw number
Sbar_Draw
===============
*/
-//void DrawCrosshair(int num);
void Sbar_Draw (void)
{
if (scr_con_current == vid.conheight)
Sbar_ShowFPS();
-// if (crosshair.integer >= 1)
-// DrawCrosshair(crosshair.integer - 1);
+ R_Draw2DCrosshair();
}
//=============================================================================
continue;
// draw background
- c = (qbyte *)&d_8to24table[(s->colors & 0xf0) + 8];
+ c = (qbyte *)&palette_complete[(s->colors & 0xf0) + 8];
DrawQ_Fill ( x + 8, y+1, 88, 3, c[0] * (1.0f / 255.0f), c[1] * (1.0f / 255.0f), c[2] * (1.0f / 255.0f), c[3] * (1.0f / 255.0f), 0);
- c = (qbyte *)&d_8to24table[((s->colors & 15)<<4) + 8];
+ c = (qbyte *)&palette_complete[((s->colors & 15)<<4) + 8];
DrawQ_Fill ( x + 8, y+4, 88, 3, c[0] * (1.0f / 255.0f), c[1] * (1.0f / 255.0f), c[2] * (1.0f / 255.0f), c[3] * (1.0f / 255.0f), 0);
total = cl.time - s->entertime;
continue;
// draw background
- c = (qbyte *)&d_8to24table[(s->colors & 0xf0) + 8];
+ c = (qbyte *)&palette_complete[(s->colors & 0xf0) + 8];
DrawQ_Fill ( x, y+1, 72, 3, c[0] * (1.0f / 255.0f), c[1] * (1.0f / 255.0f), c[2] * (1.0f / 255.0f), c[3] * (1.0f / 255.0f), 0);
- c = (qbyte *)&d_8to24table[((s->colors & 15)<<4) + 8];
+ c = (qbyte *)&palette_complete[((s->colors & 15)<<4) + 8];
DrawQ_Fill ( x, y+4, 72, 3, c[0] * (1.0f / 255.0f), c[1] * (1.0f / 255.0f), c[2] * (1.0f / 255.0f), c[3] * (1.0f / 255.0f), 0);
fph = (cl.time - s->entertime) ? (int) ((float) s->frags * 3600.0 / (cl.time - s->entertime)) : 0;