aboutsummaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-03-27 09:02:38 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-03-27 09:02:38 +0300
commit28618b65b32009fd4e718578b3314e2ae91927f7 (patch)
tree8b6e3efc3c2eb8e0e2f5518ccffbaf55bb71d320 /map.c
parent7e31a84be58805e3751c5aba27772bbb1716a5f5 (diff)
downloadastar-28618b65b32009fd4e718578b3314e2ae91927f7.tar.xz
Combine two functions into one in path.{c,h}
Diffstat (limited to 'map.c')
-rw-r--r--map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/map.c b/map.c
index 01f325f..d527cec 100644
--- a/map.c
+++ b/map.c
@@ -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;