]> granicus.if.org Git - nethack/commitdiff
Fix logic error in stuck_in_wall
authorPasi Kallinen <paxed@alt.org>
Fri, 1 Feb 2019 11:38:21 +0000 (13:38 +0200)
committerPasi Kallinen <paxed@alt.org>
Fri, 1 Feb 2019 11:38:21 +0000 (13:38 +0200)
src/pray.c

index 29cf878a4b092a95a38f31a14ba13e3c0240c0a8..d63778d52741eb5bf66ee2a6c811b7d808dcf89e 100644 (file)
@@ -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;
         }