Skip to content

Commit

Permalink
Access entity abs origin by const reference in Backtrack::run()
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Sep 19, 2020
1 parent daa4a57 commit be44cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Osiris/Hacks/Backtrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void Backtrack::run(UserCmd* cmd) noexcept
|| !entity->isOtherEnemy(localPlayer.get()))
continue;

auto origin = entity->getAbsOrigin();
const auto& origin = entity->getAbsOrigin();

auto angle = Aimbot::calculateRelativeAngle(localPlayerEyePosition, origin, cmd->viewangles + (config->backtrack.recoilBasedFov ? aimPunch : Vector{ }));
auto fov = std::hypotf(angle.x, angle.y);
Expand Down

0 comments on commit be44cd1

Please sign in to comment.