Browse Source

Fix some warnings.

dmc
Night Owl 8 years ago
parent
commit
22d73626e4
  1. 2
      dlls/aghl/agarena.cpp
  2. 2
      dlls/dmc/quake_items.cpp
  3. 4
      dlls/dmc/quake_player.cpp

2
dlls/aghl/agarena.cpp

@ -40,7 +40,7 @@ void AgArena::Think() @@ -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

2
dlls/dmc/quake_items.cpp

@ -499,7 +499,7 @@ void CBasePlayer::Deathmatch_Weapon(int iOldWeapon, int iNewWeapon) @@ -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;
}

4
dlls/dmc/quake_player.cpp

@ -32,8 +32,8 @@ extern int gmsgStatusText; @@ -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…
Cancel
Save