diff options
| -rw-r--r-- | main.c | 1 | ||||
| -rw-r--r-- | map.c | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -15,7 +15,6 @@ - Implement Dijkstra algorithm - Implement the A* algorithm - Implement it with 4 and 8 directions - - Add ability to see visited squares - MORE MAPS FOR THE MAP PEOPLE - Implement adding maps from files (with rle, preferably) - Implement controls (to change maps, move start/goal, etc.) @@ -183,7 +183,7 @@ void draw_map(Map map, size_t width, size_t height, int offset_x, int offset_y, int color_pair = 0; /* The color pair of the current char */ switch (map[i][j]) { case EMPTY: - if (visited[i][j]) + if (visited != NULL && visited[i][j]) color_pair = COLOR_PAIR(VISITED_COLOR); else color_pair = COLOR_PAIR(EMPTY_COLOR); |
