From 7e31a84be58805e3751c5aba27772bbb1716a5f5 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Fri, 27 Mar 2026 08:48:48 +0300 Subject: Add cost_array to neighbours_4dir --- map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'map.h') diff --git a/map.h b/map.h index b0cb6b1..e981513 100644 --- a/map.h +++ b/map.h @@ -10,7 +10,7 @@ Map empty_map(size_t width, size_t height); /* Stores all the existing 4dir neighbours of pos in neighbour_array and returns their amount */ -unsigned int neighbours_4dir(Position neighbour_array[4], Position pos, size_t width, size_t height, \ +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]); /* Stores all the existing 8dir neighbours of pos in neighbour_array and returns their amount. * Additionaly stores costs into cost_array if it's not NULL. -- cgit v1.2.3