Fix shadowing variables.

This commit is contained in:
Night Owl 2017-03-30 02:53:22 +05:00
parent a35e7b5068
commit 968ba1be98
2 changed files with 1 additions and 3 deletions

View File

@ -172,7 +172,7 @@ int AgHudGlobal::Draw( float fTime )
int lowest_deaths = 99999; int lowest_deaths = 99999;
int best_player = 0; int best_player = 0;
for( int i = 1; i < MAX_PLAYERS; i++ ) for( i = 1; i < MAX_PLAYERS; i++ )
{ {
if( g_PlayerInfoList[i].name && g_PlayerExtraInfo[i].frags >= highest_frags ) if( g_PlayerInfoList[i].name && g_PlayerExtraInfo[i].frags >= highest_frags )
{ {

View File

@ -805,8 +805,6 @@ BOOL AgCTFFlag::MyTouch( CBasePlayer *pPlayer )
MESSAGE_END(); MESSAGE_END();
//Let all players hear and read that the flag is gone //Let all players hear and read that the flag is gone
char szText[201];
if (FStrEq(CTF_TEAM1_NAME, m_szTeamName)) if (FStrEq(CTF_TEAM1_NAME, m_szTeamName))
{ {
if (!g_bTeam1FlagLost) if (!g_bTeam1FlagLost)