From 61c61f8b041e87e76b39b7715d1e00a637058cf0 Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 22 Sep 2022 23:16:19 -0700 Subject: [PATCH] dgn_bottom() fix Use the level passed in instead of the hero's location when checking the dungeon branch. It probably doesn't make any difference, but use the argument that's already being provided. --- src/trap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trap.c b/src/trap.c index e80c81b13..36e4177f1 100644 --- a/src/trap.c +++ b/src/trap.c @@ -389,7 +389,7 @@ dng_bottom(d_level *lev) /* deepest reached < qlocate implies current < qlocate */ if (dunlev_reached(lev) < qlocate_depth) bottom = qlocate_depth; /* early cut-off */ - } else if (Inhell) { + } else if (In_hell(lev)) { /* if the invocation hasn't been performed yet, the vibrating square level is effectively the bottom of Gehennom; the sanctum level is out of reach until after the invocation */