From: Pasi Kallinen Date: Thu, 24 Mar 2022 17:33:37 +0000 (+0200) Subject: Don't stop travel when going past a closed door X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60bf399f91cac34e8ebf127889b38475441a5d52;p=nethack Don't stop travel when going past a closed door --- diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 2e4e9f8be..c3181b619 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -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 diff --git a/src/hack.c b/src/hack.c index 1a875993c..53f0efd50 100644 --- a/src/hack.c +++ b/src/hack.c @@ -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;