From 28618b65b32009fd4e718578b3314e2ae91927f7 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Fri, 27 Mar 2026 09:02:38 +0300 Subject: Combine two functions into one in path.{c,h} --- map.c | 1 + 1 file changed, 1 insertion(+) (limited to 'map.c') 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; -- cgit v1.2.3