Prevent trapdoors and holes dropping you into Sanctum

This commit is contained in:
Pasi Kallinen
2022-09-20 12:07:33 +03:00
parent 2a0d88823f
commit ccaadaa00e

View File

@@ -403,6 +403,10 @@ hole_destination(d_level *dst)
dst->dlevel = dunlev(&u.uz);
do {
dst->dlevel++;
if (Is_sanctum(dst)) {
dst->dlevel--;
break;
}
} while (!rn2(4) && dst->dlevel < bottom);
}