fix (module): Change Climb Hack Calculation back

This commit is contained in:
MDIC
2022-04-24 10:15:14 -04:00
parent 852bc73931
commit 987f2355e2

View File

@@ -424,7 +424,7 @@ void AnticheatMgr::ClimbHackDetection(Player* player, MovementInfo movementInfo,
Position playerPos = player->GetPosition();
float deltaZ = fabs(playerPos.GetPositionZ() - movementInfo.pos.GetPositionZ());
float deltaXY = movementInfo.pos.GetExactDist2d(m_Players[key].GetLastMovementInfo().pos);
float deltaXY = movementInfo.pos.GetExactDist2d(&playerPos);
float angle = Position::NormalizeOrientation(tan(deltaZ / deltaXY));