diff options
Diffstat (limited to 'map.c')
| -rw-r--r-- | map.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -661,7 +661,7 @@ void map_editor(Map *map, size_t *width, size_t *height, Position *start, Positi if (m1down) { size_t row = event.y - map_offset_y, col = (event.x - map_offset_x) / 2; - if (row < *height && col < *width) { + if (!((row == start->y && col == start->x) || (row == goal->y && col == goal->x)) && row < *height && col < *width) { (*map)[row][col] = cur; path_free(path, *height); if (should_pathfind) { |
