nathansttt / hog2

Pathfinding and search testbed/visualization suite. Current code is in PDB-refactor branch.
MIT License
107 stars 54 forks source link

FFBDS.h uses env instead of h to determine the HCost of a pair #58

Closed lior8 closed 1 month ago

lior8 commented 1 year ago

Greetings, FFBDS is provided with both an environment and a heuristic. It is supposed to choose its next pair based on the heuristic it got, but instead uses the heuristic on the environment it got. It works if the same environment is provided both as the environment itself and the heuristic, but will fail given a different heuristic. The problematic line is FFBDS.h:316. Kind regards, Lior.