]> granicus.if.org Git - nethack/commitdiff
Don't stop travel when going past a closed door
authorPasi Kallinen <paxed@alt.org>
Thu, 24 Mar 2022 17:33:37 +0000 (19:33 +0200)
committerPasi Kallinen <paxed@alt.org>
Thu, 24 Mar 2022 17:33:37 +0000 (19:33 +0200)
doc/fixes3-7-0.txt
src/hack.c

index 2e4e9f8be9dbaf587af99424ccb1159431f1cbea..c3181b6197778c7458a6c2b9e892702affe3845d 100644 (file)
@@ -846,6 +846,8 @@ if poly'd hero is hiding under food and eats or #offers that food, stop hiding
 hide-under monsters who can be turned to stone aren't able to hide under a
        cockatrice corpse unless there is something else present but make sure
        that the other items aren't all more cockatrice corpses
+don't stop travel when going past a closed door (eg. when traveling along
+       a room wall)
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index 1a875993c7096cedb4377d6a7eba884928414296..53f0efd50d46deea4a62f99c3d4f34a42aad3ecd 100644 (file)
@@ -3252,7 +3252,7 @@ lookaround(void)
                 /* ignore if diagonal */
                 if (x != u.ux && y != u.uy)
                     continue;
-                if (g.context.run != 1) {
+                if (g.context.run != 1 && !g.context.travel) {
                     if (flags.mention_walls)
                         You("stop in front of the door.");
                     goto stop;