From bf23890a34a0c844a5be7339378b163d46f21eff Mon Sep 17 00:00:00 2001 From: Arkshine Date: Tue, 19 Aug 2014 18:25:00 +0200 Subject: [PATCH] Reverse condition for clarity and to make Nextra happy! --- amxmodx/amxmodx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index fb78ed6d..d1695dcb 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -2261,7 +2261,7 @@ static cell AMX_NATIVE_CALL get_players(AMX *amx, cell *params) /* 4 param */ for (int i = 1; i <= gpGlobals->maxClients; ++i) { CPlayer* pPlayer = GET_PLAYER_POINTER_I(i); - if (((flags & 256) && pPlayer->initialized) || pPlayer->ingame) + if (pPlayer->ingame || ((flags & 256) && pPlayer->initialized)) { if (pPlayer->IsAlive() ? (flags & 2) : (flags & 1)) continue; @@ -2317,7 +2317,7 @@ static cell AMX_NATIVE_CALL find_player(AMX *amx, cell *params) /* 1 param */ { CPlayer* pPlayer = GET_PLAYER_POINTER_I(i); - if (((flags & 4096) && pPlayer->initialized) || pPlayer->ingame) + if (pPlayer->ingame || ((flags & 4096) && pPlayer->initialized)) { if (pPlayer->IsAlive() ? (flags & 64) : (flags & 32)) continue;