Change behaviour of numbers in spectator gui

This commit is contained in:
a1batross 2016-04-18 20:04:01 +03:00
parent ec2d7d053c
commit 6c8a542574
2 changed files with 17 additions and 2 deletions

View File

@ -254,7 +254,7 @@ void CHudSpectatorGui::CalcAllNeededData( )
}
// team
label.m_iTerrorists = 0;
/*label.m_iTerrorists = 0;
label.m_iCounterTerrorists = 0;
for( int i = 0; i < MAX_PLAYERS; i++ )
{
@ -268,6 +268,21 @@ void CHudSpectatorGui::CalcAllNeededData( )
case TEAM_TERRORIST:
label.m_iTerrorists++;
}
}*/
label.m_iCounterTerrorists = 0;
label.m_iTerrorists = 0;
for( int i = 0; i < gHUD.m_Scoreboard.m_iNumTeams; i++ )
{
switch( g_TeamInfo[i].teamnumber )
{
case TEAM_CT:
label.m_iCounterTerrorists = g_TeamInfo[i].frags;
break;
case TEAM_TERRORIST:
label.m_iTerrorists = g_TeamInfo[i].frags;
break;
}
}
// timer

View File

@ -319,11 +319,11 @@ public:
CHudMsgFunc(TeamNames);
int m_iPlayerNum;
int m_iNumTeams;
private:
int m_iLastKilledBy;
int m_fLastKillTime;
int m_iNumTeams;
RGBA m_colors;
bool m_bDrawStroke;
bool m_bForceDraw; // if called by showscoreboard2