Mention boulder blocking path when traveling

...if mention_walls is on
This commit is contained in:
Pasi Kallinen
2018-04-23 19:49:34 +03:00
parent 0ab92dbc3d
commit d5a0d846bf
+4 -1
View File
@@ -857,8 +857,11 @@ int mode;
if (sobj_at(BOULDER, x, y) && (Sokoban || !Passes_walls)) { if (sobj_at(BOULDER, x, y) && (Sokoban || !Passes_walls)) {
if (!(Blind || Hallucination) && (context.run >= 2) 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; return FALSE;
}
if (mode == DO_MOVE) { if (mode == DO_MOVE) {
/* tunneling monsters will chew before pushing */ /* tunneling monsters will chew before pushing */
if (tunnels(youmonst.data) && !needspick(youmonst.data) if (tunnels(youmonst.data) && !needspick(youmonst.data)