Skip to content

Commit

Permalink
Fix: fall depth from Castle to the Valley of the Dead.
Browse files Browse the repository at this point in the history
  • Loading branch information
k21971 committed Feb 1, 2022
1 parent 2ccdc8a commit d4035a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/evilhack-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion src/do.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d4035a5

Please sign in to comment.