mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
Fix some warnings.
This commit is contained in:
parent
160d367649
commit
22d73626e4
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user