Skip to content

Commit

Permalink
Fix aiming player validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggi committed Sep 17, 2016
1 parent 7282a0e commit 44131e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CPlayerData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 44131e2

Please sign in to comment.