From b42227cf4817e5ff320448942100fc50390556e6 Mon Sep 17 00:00:00 2001 From: andreaszdw Date: Fri, 21 Oct 2022 11:02:06 +0200 Subject: [PATCH] Update grid.lua If x and y value is passed with walkable function, it can be used in the users walkable function. --- jumper/grid.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jumper/grid.lua b/jumper/grid.lua index 02e5c3c..9fed157 100644 --- a/jumper/grid.lua +++ b/jumper/grid.lua @@ -121,7 +121,7 @@ if (...) then hasEnoughClearance = (nodeClearance >= clearance) end if self._eval then - return walkable(nodeValue) and hasEnoughClearance + return walkable(nodeValue, x, y) and hasEnoughClearance end return ((nodeValue == walkable) and hasEnoughClearance) end