From 987f2355e2bb3f46b12a4df9b2e5de440358a671 Mon Sep 17 00:00:00 2001 From: MDIC Date: Sun, 24 Apr 2022 10:15:14 -0400 Subject: [PATCH] fix (module): Change Climb Hack Calculation back --- src/AnticheatMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index bc1d7f6..7407030 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -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));