diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-27 08:48:48 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-27 08:48:48 +0300 |
| commit | 7e31a84be58805e3751c5aba27772bbb1716a5f5 (patch) | |
| tree | d24954e0403340a68db005a2e4d194947298cf8a /map.h | |
| parent | c3530ad46236adbba18bf47a5cc3841b0578ff70 (diff) | |
| download | astar-7e31a84be58805e3751c5aba27772bbb1716a5f5.tar.xz | |
Add cost_array to neighbours_4dir
Diffstat (limited to 'map.h')
| -rw-r--r-- | map.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |
