]> granicus.if.org Git - nethack/commitdiff
Fix fall depth from Castle to the Valley
authorPasi Kallinen <paxed@alt.org>
Mon, 31 Jan 2022 18:31:26 +0000 (20:31 +0200)
committerPasi Kallinen <paxed@alt.org>
Mon, 31 Jan 2022 18:31:26 +0000 (20:31 +0200)
src/do.c

index 593be00dc1b88beea8cb56b62c2063b69625f928..562d97a40b615deb5d1fd36039db43546eb537cd 100644 (file)
--- a/src/do.c
+++ b/src/do.c
@@ -1302,7 +1302,7 @@ goto_level(
     struct monst *mtmp;
     char whynot[BUFSZ];
     char *annotation;
-    int dist = newlevel->dlevel - dunlev(&u.uz);
+    int dist = depth(newlevel) - depth(&u.uz);
     boolean do_fall_dmg = FALSE;
 
     if (dunlev(newlevel) > dunlevs_in_dungeon(newlevel))