Skip to content

Commit

Permalink
fix(client): use correct _flag variable on second raycast
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed May 12, 2024
1 parent d7c550d commit cdb83a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ local function startTargeting()

if entityType == 0 then
local _flag = flag == 511 and 26 or 511
local _hit, _entityHit, _endCoords = lib.raycast.fromCamera(flag, 4, 20)
local _hit, _entityHit, _endCoords = lib.raycast.fromCamera(_flag, 4, 20)
local _distance = #(playerCoords - _endCoords)

if _distance < distance then
Expand Down

0 comments on commit cdb83a6

Please sign in to comment.