From: Pasi Kallinen Date: Fri, 1 Feb 2019 11:38:21 +0000 (+0200) Subject: Fix logic error in stuck_in_wall X-Git-Tag: NetHack-3.6.2_Released~72^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=adacde80e7a66c915124f2ddda31844fb0197743;p=nethack Fix logic error in stuck_in_wall --- diff --git a/src/pray.c b/src/pray.c index 29cf878a4..d63778d52 100644 --- a/src/pray.c +++ b/src/pray.c @@ -157,7 +157,7 @@ stuck_in_wall() y = u.uy + j; if (!isok(x, y) || (IS_ROCK(levl[x][y].typ) - && (levl[x][y].typ != SDOOR || levl[x][y].typ != SCORR)) + && (levl[x][y].typ != SDOOR && levl[x][y].typ != SCORR)) || (blocked_boulder(i, j) && !throws_rocks(youmonst.data))) ++count; }