]> granicus.if.org Git - nethack/commitdiff
Mention boulder blocking path when traveling
authorPasi Kallinen <paxed@alt.org>
Mon, 23 Apr 2018 16:49:30 +0000 (19:49 +0300)
committerPasi Kallinen <paxed@alt.org>
Mon, 23 Apr 2018 16:49:34 +0000 (19:49 +0300)
...if mention_walls is on

src/hack.c

index 873f7549b27ff7674c64fb48a5dc5e2e3e404ee0..55fcfec9cdbf99d3d0ec6a48fcc71cc28b90efb3 100644 (file)
@@ -857,8 +857,11 @@ int mode;
 
     if (sobj_at(BOULDER, x, y) && (Sokoban || !Passes_walls)) {
         if (!(Blind || Hallucination) && (context.run >= 2)
-            && mode != TEST_TRAV)
+            && mode != TEST_TRAV) {
+            if (mode == DO_MOVE && iflags.mention_walls)
+                pline("A boulder blocks your path.");
             return FALSE;
+        }
         if (mode == DO_MOVE) {
             /* tunneling monsters will chew before pushing */
             if (tunnels(youmonst.data) && !needspick(youmonst.data)