]> granicus.if.org Git - nethack/commitdiff
Explicitly check for not STONE in corridor join
authorPasi Kallinen <paxed@alt.org>
Sat, 26 Jun 2021 13:59:07 +0000 (16:59 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 26 Jun 2021 13:59:11 +0000 (16:59 +0300)
... instead of relying STONE being 0

src/mklev.c

index ea4597757b6347a04e93b42e620bd1d60a8cd9a9..7a5992b82df63313c8607a2004fc2ed568dd8766 100644 (file)
@@ -375,7 +375,7 @@ join(register int a, register int b, boolean nxcor)
     yy = cc.y;
     tx = tt.x - dx;
     ty = tt.y - dy;
-    if (nxcor && levl[xx + dx][yy + dy].typ)
+    if (nxcor && levl[xx + dx][yy + dy].typ != STONE)
         return;
     if (okdoor(xx, yy) || !nxcor)
         dodoor(xx, yy, croom);