From 5d6d0638649901022753ff9d72465809c7525a25 Mon Sep 17 00:00:00 2001 From: puzl Date: Wed, 23 Aug 2006 23:16:08 +0000 Subject: [PATCH] o removed cvars for scoreboard weapon sprite colour. git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@578 67975925-1194-0748-b3d5-c16f83f1a3a1 --- releases/3.2.0/source/cl_dll/vgui_ScorePanel.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 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 10e6afd6..3cf34a8d 100644 --- a/releases/3.2.0/source/cl_dll/vgui_ScorePanel.cpp +++ b/releases/3.2.0/source/cl_dll/vgui_ScorePanel.cpp @@ -1250,16 +1250,12 @@ void ScorePanel::FillGrid() break; case COLUMN_EXTRA: - if(( !theIsForEnemy || theLocalPlayerTeam == TEAM_SPECT )&& theLocalPlayerTeam != TEAM_IND && theExtraPlayerInfo->teamnumber != TEAM_IND && theExtraPlayerInfo->teamnumber != TEAM_SPECT ) + if( (!theIsForEnemy || theLocalPlayerTeam == TEAM_SPECT ) && theLocalPlayerTeam != TEAM_IND && theExtraPlayerInfo->teamnumber != TEAM_IND && theExtraPlayerInfo->teamnumber != TEAM_SPECT ) { if ( isNsMode ) { 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"); - r=max(min(255, r), 0); - g=max(min(255, g), 0); - b=max(min(255, b), 0); + + int r=0, g=149, b=221; switch(theExtraPlayerInfo->extra) { case AVH_WEAPON_HMG: