summaryrefslogtreecommitdiff
path: root/22.c
diff options
context:
space:
mode:
Diffstat (limited to '22.c')
-rw-r--r--22.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/22.c b/22.c
index df55cdb..db4ee87 100644
--- a/22.c
+++ b/22.c
@@ -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);