From: Pasi Kallinen Date: Sat, 26 Jun 2021 13:59:07 +0000 (+0300) Subject: Explicitly check for not STONE in corridor join X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ea652e0c67c484cd7727903de26f7e49e402db0;p=nethack Explicitly check for not STONE in corridor join ... instead of relying STONE being 0 --- diff --git a/src/mklev.c b/src/mklev.c index ea4597757..7a5992b82 100644 --- a/src/mklev.c +++ b/src/mklev.c @@ -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);