From: havoc Date: Mon, 26 Dec 2005 01:16:44 +0000 (+0000) Subject: nexuiz team scoreboard patch from esteel X-Git-Tag: xonotic-v0.1.0preview~4425 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=73dddbf16d40bca723805f8f25188554f676cdfd;p=xonotic%2Fdarkplaces.git nexuiz team scoreboard patch from esteel git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5860 d7cf8633-e32d-0410-b094-e92efae38249 --- 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