From 6834ffa31842ca249514854bac8bae0f0022f104 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Thu, 23 Apr 2026 14:29:15 +0300 Subject: Make wraparound toggleable with a keybind --- path.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'path.h') diff --git a/path.h b/path.h index 4a2159f..459bca6 100644 --- a/path.h +++ b/path.h @@ -9,6 +9,9 @@ extern Path (*path_func)(int, Map, size_t **, size_t, size_t, Position, Position /* Time it took to calculate a path */ extern double path_time; +/* Controls whether walls should wrap around, only works in Dijkstra's */ +extern char wraparound_enabled; + /* dirs can be 4 or 8 to disallow or allow diagonal movement */ //Path breadth_first_search_path(int dirs, Map map, size_t **cell_costs, size_t width, size_t height, Position start, Position end, char **visited, char should_anim); Path dijkstra_path(int dirs, Map map, size_t **cell_costs, size_t width, size_t height, Position start, Position end, char **visited, char should_anim); -- cgit v1.2.3