From 5b0c2033f7a7639804327bbd38618b974caab12c Mon Sep 17 00:00:00 2001 From: copperwater Date: Tue, 7 Sep 2021 15:00:45 -0400 Subject: [PATCH] Fix: running on ice sent hero in weird directions This is because ice was being treated as a type of corridor rather than a ROOM space, and running has rules for following similar terrain. In reality it's not a corridor and should behave like normal room for running purposes. This was obvious in the valkyrie quest upper levels with ice fields, in which running into the edges of the map obliquely, or into the corners of the map, would send the hero flying around the edge in a different, probably unintended direction. --- src/hack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hack.c b/src/hack.c index dbb353036..bdbb03ce8 100644 --- a/src/hack.c +++ b/src/hack.c @@ -2831,7 +2831,7 @@ lookaround(void) /* more uninteresting terrain */ if (IS_ROCK(levl[x][y].typ) || levl[x][y].typ == ROOM - || IS_AIR(levl[x][y].typ)) { + || IS_AIR(levl[x][y].typ) || levl[x][y].typ == ICE) { continue; } else if (closed_door(x, y) || (mtmp && is_door_mappear(mtmp))) { /* a closed door? */