Don't stop travel when going past a closed door

This commit is contained in:
Pasi Kallinen
2022-03-24 19:33:37 +02:00
parent 5478baa6ee
commit 60bf399f91
2 changed files with 3 additions and 1 deletions

View 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

View 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;