Explicitly check for not STONE in corridor join

... instead of relying STONE being 0
This commit is contained in:
Pasi Kallinen
2021-06-26 16:59:07 +03:00
parent c019968997
commit 5ea652e0c6

View 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);