Skip to content

Commit

Permalink
Fix AimAssist FOV
Browse files Browse the repository at this point in the history
  • Loading branch information
SomePineaple committed Feb 4, 2022
1 parent 8b3d991 commit 231eb8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cheats/AimAssist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void AimAssist::renderSettings() {
bool AimAssist::isInFOV(EntityPlayer *entity, Minecraft *mc, float fov) {
float playerYaw = MathHelper::wrapAngleTo180(mc->getPlayerContainer()->getRotationYaw()) + 180;
float *targetRotations = MathHelper::getRotations(mc->getPlayerContainer(), entity);
float targetYaw = targetRotations[0];
float targetYaw = targetRotations[0] + 180;
free(targetRotations);

float diff = std::abs(MathHelper::getAngleDiff(playerYaw, targetYaw));
Expand Down

0 comments on commit 231eb8b

Please sign in to comment.