justinhj/astar-algorithm-cpp

Path is irregular

sagunkho opened this issue · 0 comments

The algorithm opts for an irregular path when running in my project. This could be just me and the settings I've configured but the following is generated with an irregular path, which should've been a straight one -

^ denotes the path
. denotes unwalkable tiles

Screenshot 2021-02-25 172923

the code can be found here -
https://github.com/horizonxyz/horizon/blob/status/src/Tests/AStarTest.cpp

map data can be found here -
https://github.com/horizonxyz/horizon/blob/status/src/Tests/prontera.cpp