aboutsummaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
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;