From 73dddbf16d40bca723805f8f25188554f676cdfd Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 26 Dec 2005 01:16:44 +0000 Subject: [PATCH] nexuiz team scoreboard patch from esteel git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5860 d7cf8633-e32d-0410-b094-e92efae38249 --- sbar.c | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/sbar.c b/sbar.c index 4e09cbc4..0e2e5f13 100644 --- a/sbar.c +++ b/sbar.c @@ -471,6 +471,13 @@ void Sbar_DrawXNum (int x, int y, int num, int digits, int lettersize, float r, //============================================================================= +int Sbar_IsTeammatch() +{ + // currently only nexuiz uses the team score board + return ((gamemode == GAME_NEXUIZ) + && (teamplay.integer > 0)); +} + /* =============== Sbar_SortFrags @@ -478,11 +485,14 @@ Sbar_SortFrags */ static int fragsort[MAX_SCOREBOARD]; static int scoreboardlines; +static scoreboard_t teams[MAX_SCOREBOARD]; +static int teamsort[MAX_SCOREBOARD]; +static int teamlines; void Sbar_SortFrags (void) { int i, j, k; -// sort by frags + // sort by frags scoreboardlines = 0; for (i=0 ; i