]> granicus.if.org Git - nethack/commitdiff
Fix mention_walls reporting secret doors as solid stone
authorPasi Kallinen <paxed@alt.org>
Fri, 22 Sep 2017 13:31:31 +0000 (16:31 +0300)
committerPasi Kallinen <paxed@alt.org>
Fri, 22 Sep 2017 13:33:20 +0000 (16:33 +0300)
doc/fixes36.1
src/hack.c

index 03bfc8dbcc622cd7b305159d1804ea07dd158c36..46bb2ad03816976034ffd5c63dfc2df54b02279d 100644 (file)
@@ -443,6 +443,7 @@ fix buffer overflow in wizard mode for '#' command when 'extmenu' option is on
 "you suddenly vomit" was given two turns before actually vomiting, so you
        could get that message, move a bit, then get "you can move again"
        after the 2 turn freeze applied along with the actual vomit
+fix mention_walls reporting secret doors as solid walls
 
 
 Fixes to Post-3.6.0 Problems that Were Exposed Via git Repository
index a196b44f57cd11ac04a26308a6e5f0f49449ce1c..11ff4275ffa3c6f13fde3059fced65ed8beec435 100644 (file)
@@ -722,9 +722,10 @@ int mode;
                          && In_sokoban(&u.uz))
                     pline_The("Sokoban walls resist your ability.");
                 else if (iflags.mention_walls)
-                    pline("It's %s.", IS_WALL(tmpr->typ) ? "a wall"
-                                        : IS_TREE(tmpr->typ) ? "a tree"
-                                          : "solid stone");
+                    pline("It's %s.",
+                          (IS_WALL(tmpr->typ) || tmpr->typ == SDOOR) ? "a wall"
+                          : IS_TREE(tmpr->typ) ? "a tree"
+                          : "solid stone");
             }
             return FALSE;
         }