diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -186,6 +186,8 @@ int main(int argc, char **argv) { * * [d] - Switch algorithms (A* or Dijsktra's) * + * [r] - Reverse the path and switch start/end around + * * [s] - Save the map to a bmp file * * [w] - Open a map from a plaintext file @@ -276,6 +278,10 @@ int main(int argc, char **argv) { /* TODO: print time */ break; + case 'r': + path_reverse(&path, width, height, &start_pos, &end_pos); + break; + case 'y': case 'o': case 'u': |
