Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jumper/search/astar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if (...) then
local node = openList:pop()
node._closed = true
if node == endNode then return node end
local neighbours = finder._grid:getNeighbours(node, finder._walkable, finder._allowDiagonal, finder._tunnel)
local neighbours = finder._grid:getNeighbours(node, finder._walkable, finder._allowDiagonal, finder._tunnel, clearance)
for i = 1,#neighbours do
local neighbour = neighbours[i]
if not neighbour._closed then
Expand Down
2 changes: 1 addition & 1 deletion jumper/search/bfs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (...) then
local t_remove = table.remove

local function breadth_first_search(finder, openList, node, endNode, clearance, toClear)
local neighbours = finder._grid:getNeighbours(node, finder._walkable, finder._allowDiagonal, finder._tunnel)
local neighbours = finder._grid:getNeighbours(node, finder._walkable, finder._allowDiagonal, finder._tunnel, clearance)
for i = 1,#neighbours do
local neighbour = neighbours[i]
if not neighbour._closed and not neighbour._opened then
Expand Down
2 changes: 1 addition & 1 deletion jumper/search/dfs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (...) then
local t_remove = table.remove

local function depth_first_search(finder, openList, node, endNode, clearance, toClear)
local neighbours = finder._grid:getNeighbours(node, finder._walkable, finder._allowDiagonal, finder._tunnel)
local neighbours = finder._grid:getNeighbours(node, finder._walkable, finder._allowDiagonal, finder._tunnel, clearance)
for i = 1,#neighbours do
local neighbour = neighbours[i]
if (not neighbour._closed and not neighbour._opened) then
Expand Down
2 changes: 1 addition & 1 deletion jumper/search/thetastar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (...) then
local sy = (y0 < y1) and 1 or -1

while true do
if not finder._grid:isWalkableAt(x0, y0, finder._walkable, finder._tunnel, clearance) then
if not finder._grid:isWalkableAt(x0, y0, finder._walkable, clearance) then
return false
end
if x0 == x1 and y0 == y1 then
Expand Down