This commit is contained in:
MaddoScientisto 2024-04-29 23:40:32 +02:00
commit c01ab2333c
2 changed files with 10 additions and 10 deletions

View file

@ -332,7 +332,7 @@ function raycast(x1, y1, x2, y2, max_distance)
-- limit the maximum distance
if distance > max_distance then
--return x2, y2, false
return px, py, false
return x1, y1, false
end
-- checking the start point