From 22d73626e46d38a4052e0d27f92063ffd55c3475 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Sat, 15 Apr 2017 21:37:02 +0500 Subject: [PATCH] Fix some warnings. --- dlls/aghl/agarena.cpp | 2 +- dlls/dmc/quake_items.cpp | 2 +- dlls/dmc/quake_player.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/aghl/agarena.cpp b/dlls/aghl/agarena.cpp index 203578c7..47b159f0 100644 --- a/dlls/aghl/agarena.cpp +++ b/dlls/aghl/agarena.cpp @@ -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 diff --git a/dlls/dmc/quake_items.cpp b/dlls/dmc/quake_items.cpp index 7e5f4fff..cce00fe0 100644 --- a/dlls/dmc/quake_items.cpp +++ b/dlls/dmc/quake_items.cpp @@ -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; } diff --git a/dlls/dmc/quake_player.cpp b/dlls/dmc/quake_player.cpp index 0218fb47..c621cc2f 100644 --- a/dlls/dmc/quake_player.cpp +++ b/dlls/dmc/quake_player.cpp @@ -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