]> rtime.felk.cvut.cz Git - eurobot/public.git/blobdiff - src/pathplan/test/testastar.c
pathplan:add map cell flag path shape. Flag shows cells, which was checked by astar...
[eurobot/public.git] / src / pathplan / test / testastar.c
index 8ca7a4baa1c8f1a043046813612843339faad714..c2cdf089f465f95232d2ffae6a8a0d0556456c56 100644 (file)
@@ -24,9 +24,13 @@ void print_map(char *label)
                        char c;
                        if (ShmapIsFreeCell(x, y)) {
                                c = '.';
+                               if (map->cells[y][x].flags & MAP_FLAG_PATH_SHAPE) {
+                                       c = 's';
+                               }
                                if (map->cells[y][x].flags & MAP_FLAG_PATH) {
                                        c = 'p';
                                }
+                               
                        } else
                                c = '#';
                        putchar(c);