Change behaviour of numbers in spectator gui
This commit is contained in:
parent
ec2d7d053c
commit
6c8a542574
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user