Fix some warnings.

This commit is contained in:
Night Owl 2017-04-15 21:37:02 +05:00
parent 160d367649
commit 22d73626e4
3 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ void AgArena::Think()
CBasePlayer* pPlayer1 = GetPlayer1();
CBasePlayer* pPlayer2 = GetPlayer2();
if (!pPlayer1 || pPlayer1 && !pPlayer1->IsAlive() || !pPlayer2 || pPlayer2 && !pPlayer2->IsAlive())
if (!pPlayer1 || ( pPlayer1 && !pPlayer1->IsAlive() ) || !pPlayer2 || ( pPlayer2 && !pPlayer2->IsAlive() ) )
{
m_Status = PlayerDied;
m_fNextCountdown = gpGlobals->time + 3.0; //Let the effect of him dying play for 3 seconds

View File

@ -499,7 +499,7 @@ void CBasePlayer::Deathmatch_Weapon(int iOldWeapon, int iNewWeapon)
W_ChangeWeapon( iPickedWep ); break;
case 2:
if ( iPickedWep == 8 && !FBitSet(pev->flags , FL_INWATER) || iPickedWep > iOldWep )
if ( ( iPickedWep == 8 && !FBitSet(pev->flags, FL_INWATER) ) || iPickedWep > iOldWep )
W_ChangeWeapon( iPickedWep );
break;
}

View File

@ -32,8 +32,8 @@ extern int gmsgStatusText;
extern int gmsgStatusValue;
extern DLL_GLOBAL Vector g_vecAttackDir;
/*************************************
STATUS BAR
/*************************************/
/* STATUS BAR */
/*************************************/
// Initialise the player's status bar