diff --git a/doc/evilhack-changelog.md b/doc/evilhack-changelog.md index b7700034d..9c36156df 100644 --- a/doc/evilhack-changelog.md +++ b/doc/evilhack-changelog.md @@ -2093,4 +2093,5 @@ The following changes to date are: - Cancellation explodes magical traps - Falling through a hole or trap door will cause damage - Fix: drinking from a forge +- Fix: fall depth from Castle to the Valley of the Dead diff --git a/src/do.c b/src/do.c index 046caf0e3..c3d66658c 100644 --- a/src/do.c +++ b/src/do.c @@ -1392,7 +1392,7 @@ boolean at_stairs, falling, portal; 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))