Yonaba / Jumper

Fast, lightweight and easy-to-use pathfinding library for grid-based games
http://yonaba.github.io/Jumper
MIT License
607 stars 122 forks source link

Pathfinder:getPath: Add _walkable parameter to _grid:isWalkableAt #34

Open saschagehlich opened 10 years ago

saschagehlich commented 10 years ago

PathFinder:getPath() did not pass the _walkable variable to the Grid:isWalkableAt method. I came across this when I passed a function to PathFinder:setWalkable() which caused Grid:isWalkableAt() to break (since it tried to call walkable while it was nil)

Sorry for the messy diff, but I configured my editor to remove trailing spaces. You should do this too. :+1:

mokalux commented 8 months ago

for future ref, this PR was merged