From 44131e2ea687e8b1166b0709481f28d5571be26c Mon Sep 17 00:00:00 2001 From: Sergei Marochkin Date: Sat, 17 Sep 2016 11:00:23 +0300 Subject: [PATCH] Fix aiming player validation --- src/CPlayerData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CPlayerData.cpp b/src/CPlayerData.cpp index 4f714b9..38110ac 100644 --- a/src/CPlayerData.cpp +++ b/src/CPlayerData.cpp @@ -717,7 +717,7 @@ void CPlayerData::Process() UpdateAimingData(m_vecAimAt, m_bAimSetAngle); } - if (pServer->GetPlayerManager()->IsPlayerConnected(m_wMoveId) && IsAimingAtPlayer(m_wHitId)) { + if (pServer->GetPlayerManager()->IsPlayerConnected(m_wHitId) && IsAimingAtPlayer(m_wHitId)) { CPlayer *pPlayer = pNetGame->pPlayerPool->pPlayer[m_wHitId]; if (pPlayer) { if (m_vecAimAt != pPlayer->vecPosition) {