diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-27 09:02:38 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-27 09:02:38 +0300 |
| commit | 28618b65b32009fd4e718578b3314e2ae91927f7 (patch) | |
| tree | 8b6e3efc3c2eb8e0e2f5518ccffbaf55bb71d320 /map.c | |
| parent | 7e31a84be58805e3751c5aba27772bbb1716a5f5 (diff) | |
| download | astar-28618b65b32009fd4e718578b3314e2ae91927f7.tar.xz | |
Combine two functions into one in path.{c,h}
Diffstat (limited to 'map.c')
| -rw-r--r-- | map.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -25,6 +25,7 @@ Map empty_map(size_t width, size_t height) { /* Honestly, what a shitty fucking way to implement this */ /* When we allow maps to have costs, these two neighbours functions will have to use the instead of COST_* defines */ +/* TODO: maybe merge them, add `dirs` parameter, like we do in path.c? */ unsigned int neighbours_4dir(Position neighbour_array[4], size_t cost_array[4], Position pos, size_t width, size_t height, \ char visited[height][width]) { size_t cur = 0; |
