From 5c57cd46e175a7dfa4ff223eaa5c134a8f117c60 Mon Sep 17 00:00:00 2001 From: puzl Date: Mon, 5 Jun 2006 14:31:13 +0000 Subject: [PATCH] o Changed the order of weapon/res and latency o Fixed some issues with spectating the scoreboard. git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@525 67975925-1194-0748-b3d5-c16f83f1a3a1 --- releases/3.2.0/source/cl_dll/vgui_ScorePanel.cpp | 6 +++--- releases/3.2.0/source/cl_dll/vgui_ScorePanel.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/releases/3.2.0/source/cl_dll/vgui_ScorePanel.cpp b/releases/3.2.0/source/cl_dll/vgui_ScorePanel.cpp index 2847d2b9..d080e020 100644 --- a/releases/3.2.0/source/cl_dll/vgui_ScorePanel.cpp +++ b/releases/3.2.0/source/cl_dll/vgui_ScorePanel.cpp @@ -150,8 +150,8 @@ SBColumnInfo g_ColumnInfo[NUM_COLUMNS] = {"#SCORE", 40, Label::a_east}, // score {"#KILLS", 40, Label::a_east}, // kills {"#DEATHS", 40, Label::a_east}, // deaths - {"#LATENCY", 40, Label::a_east}, // ping {NULL, 40, Label::a_east}, // resources + {"#LATENCY", 40, Label::a_east}, // ping {"#VOICE", 40, Label::a_east}, {NULL, 2, Label::a_east}, // blank column to take up the slack }; @@ -1252,7 +1252,7 @@ void ScorePanel::FillGrid() if(!theIsForEnemy && theExtraPlayerInfo->teamnumber != TEAM_IND && theExtraPlayerInfo->teamnumber != TEAM_SPECT ) { if ( isNsMode ) { - if ( gHUD.GetHUDTeam() == TEAM_ONE || gHUD.GetHUDTeam() == TEAM_THREE ) { + if ( theExtraPlayerInfo->teamnumber == TEAM_ONE || theExtraPlayerInfo->teamnumber == TEAM_THREE ) { int r=CVAR_GET_FLOAT("cl_iconr"); int g=CVAR_GET_FLOAT("cl_icong"); int b=CVAR_GET_FLOAT("cl_iconb"); @@ -1285,7 +1285,7 @@ void ScorePanel::FillGrid() break; } } - else if ( gHUD.GetHUDTeam() == TEAM_TWO || gHUD.GetHUDTeam() == TEAM_FOUR ) { + else if ( theExtraPlayerInfo->teamnumber == TEAM_TWO || theExtraPlayerInfo->teamnumber == TEAM_FOUR ) { sprintf(sz, "%d", theExtraPlayerInfo->extra); } } diff --git a/releases/3.2.0/source/cl_dll/vgui_ScorePanel.h b/releases/3.2.0/source/cl_dll/vgui_ScorePanel.h index 1b40e176..c6f9e521 100644 --- a/releases/3.2.0/source/cl_dll/vgui_ScorePanel.h +++ b/releases/3.2.0/source/cl_dll/vgui_ScorePanel.h @@ -23,8 +23,8 @@ #define COLUMN_SCORE 4 #define COLUMN_KILLS 5 #define COLUMN_DEATHS 6 -#define COLUMN_LATENCY 7 -#define COLUMN_EXTRA 8 +#define COLUMN_EXTRA 7 +#define COLUMN_LATENCY 8 #define COLUMN_VOICE 9 #define COLUMN_BLANK 10 #define NUM_COLUMNS 11