]> granicus.if.org Git - nethack/commitdiff
U406 - running and mimic mimicking closed doors
authorcohrs <cohrs>
Mon, 14 Apr 2003 05:10:06 +0000 (05:10 +0000)
committercohrs <cohrs>
Mon, 14 Apr 2003 05:10:06 +0000 (05:10 +0000)
If running in a way that stops at closed doors, you should stop when coming
across a mimic mimicking a closed door too.

doc/fixes34.2
src/hack.c

index 7b91ff752707633489380040504b71687e229a47..962dd236c8a52cb4673c4886c7b1e942f374bcd8 100644 (file)
@@ -40,6 +40,7 @@ charge for use of an unpaid tinning kit
 avoid impossible when water freezes while hero is hiding under water
 avoid impossible after eating the object the hero is hiding under
 failed attempt to eat floor gold while polymorphed would lose the gold
+running that stops for closed doors should stop at mimics mimicking closed doors
 
 
 Platform- and/or Interface-Specific Fixes
index c9fd83d1d385cf0ae95998c566efbdeeffd313ba..bd6df7430cb729f54797d0d558865898ba878385 100644 (file)
@@ -1906,7 +1906,10 @@ lookaround()
        if (IS_ROCK(levl[x][y].typ) || (levl[x][y].typ == ROOM) ||
            IS_AIR(levl[x][y].typ))
            continue;
-       else if (closed_door(x,y)) {
+       else if (closed_door(x,y) ||
+                (mtmp && mtmp->m_ap_type == M_AP_FURNITURE &&
+                 (mtmp->mappearance == S_hcdoor ||
+                  mtmp->mappearance == S_vcdoor))) {
            if(x != u.ux && y != u.uy) continue;
            if(flags.run != 1) goto stop;
            goto bcorr;