diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-23 14:29:15 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-04-23 14:29:15 +0300 |
| commit | 6834ffa31842ca249514854bac8bae0f0022f104 (patch) | |
| tree | e3b2c68ee6951727b65910b5bfe7876646c756bd /map.c | |
| parent | fbde58b3509184a687759bc822b5567e9a13d2bc (diff) | |
| download | astar-6834ffa31842ca249514854bac8bae0f0022f104.tar.xz | |
Make wraparound toggleable with a keybind
Diffstat (limited to 'map.c')
| -rw-r--r-- | map.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -715,7 +715,7 @@ void map_editor(Map *map, size_t *width, size_t *height, Position *start, Positi break; case 'd': - if (path_func == astar_path) { set_message("Dijkstra"); path_func = &dijkstra_path; } + if (path_func == astar_path) { set_message("Dijkstra's"); path_func = &dijkstra_path; } else { set_message("A*"); path_func = &astar_path; }; path_free(path, *height); if (should_pathfind) path = path_func(dirs, *map, NULL, *width, *height, *start, *goal, visited, 0); |
