X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=astar.c;h=6e897589bf3561f5edceb37d6e243211c3490448;hb=68a4657bb9a3025823a64b7c36d997780d491701;hp=5bfc60fc2077ae94b16d8ba24e68d7829efc899c;hpb=8ca2b8a06b00066a20f744a61c9bcdd65949a344;p=hexagon diff --git a/astar.c b/astar.c index 5bfc60f..6e89758 100644 --- a/astar.c +++ b/astar.c @@ -136,7 +136,7 @@ struct HL_astar_hex *in_closed(struct HL_astar *s, int hex) { struct HL_astar_hex *h; if (!s) return 0; - for(h = s->closed; h; h = h->next) { + for (h = s->closed; h; h = h->next) { if (h->hex == hex) return h; } return NULL; @@ -146,7 +146,7 @@ struct HL_astar_hex *in_open(struct HL_astar *s, int hex) { struct HL_astar_hex *h; if (!s) return 0; - for(h = s->open; h; h = h->next) { + for (h = s->open; h; h = h->next) { if (h->hex == hex) return h; } return NULL;