X-Git-Url: https://pd.if.org/git/?p=hexagon;a=blobdiff_plain;f=astar.c;h=5bfc60fc2077ae94b16d8ba24e68d7829efc899c;hp=cabe5d08c4c36dec8d0bf86490fe5e2424e4a2a2;hb=8ca2b8a06b00066a20f744a61c9bcdd65949a344;hpb=5c48a06bc8649958e69013c53e925b83398ebc74 diff --git a/astar.c b/astar.c index cabe5d0..5bfc60f 100644 --- a/astar.c +++ b/astar.c @@ -1,11 +1,11 @@ -#include "hexmap.h" - #include #include #include #include #include +#include "hexagon.h" + /* * TODO use binary heap for the openlist and closed list. * open list should be a min-heap on the f value @@ -229,7 +229,6 @@ int HL_findpath(struct HL_astar *s, int loops) { yopen = in_open(s, y); if (! yopen) { yopen = add_open(s, y); - tent_better = 1; } else if (cost < yopen->g) { tent_better = 1;