diff options
Diffstat (limited to '22.c')
-rw-r--r-- | 22.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -187,7 +187,7 @@ elf_move(struct elf * elf, struct map const * map, int distance) elem = map_elem(map, newelf.x, newelf.y); // Just keep going until we wrap around to a non-blank position - while (elem == ' ' || elem == '\n') { + while (elem == ' ') { newelf.x = modulo(newelf.x + dx, map->cols); newelf.y = modulo(newelf.y + dy, map->rows); elem = map_elem(map, newelf.x, newelf.y); |