From ccaadaa00e2856ac788cc49d65e3f4cff8acb236 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 20 Sep 2022 12:07:33 +0300 Subject: [PATCH] Prevent trapdoors and holes dropping you into Sanctum --- src/trap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/trap.c b/src/trap.c index 561a2ca88..b794c4891 100644 --- a/src/trap.c +++ b/src/trap.c @@ -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); }