Skip to content

Commit

Permalink
The One Variable To Stop Them All
Browse files Browse the repository at this point in the history
  • Loading branch information
LiddulBOFH committed Jan 28, 2023
1 parent cb39c29 commit 40038d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/acf/core/utilities/util_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ do -- Special squishy functions
local BestChoice = next(HitBones)
local BestDist = HitBones[BestChoice]:DistToSqr(RayStart)

for k,v in pairs(HitBones) do
for k,_ in pairs(HitBones) do
if BestChoice == k then continue end
local BoxPosDist = HitBones[k]:DistToSqr(RayStart)
if BoxPosDist < BestDist then BestChoice = k BestDist = BoxPosDist end
Expand Down

0 comments on commit 40038d9

Please sign in to comment.