From d5a0d846bf12d9a4d41c924b4203ce686a6f6020 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Mon, 23 Apr 2018 19:49:30 +0300 Subject: [PATCH] Mention boulder blocking path when traveling ...if mention_walls is on --- src/hack.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hack.c b/src/hack.c index 873f7549b..55fcfec9c 100644 --- a/src/hack.c +++ b/src/hack.c @@ -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)