]> granicus.if.org Git - nethack/commitdiff
entering gehennom
authornethack.rankin <nethack.rankin>
Sun, 26 Jun 2005 05:10:49 +0000 (05:10 +0000)
committernethack.rankin <nethack.rankin>
Sun, 26 Jun 2005 05:10:49 +0000 (05:10 +0000)
     When you first attempt to walk down the stairs from the Valley of the
Dead to the second level of the Gehennom branch, the game prompts you about
whether you really want to proceed.  But if wasn't keeping track of whether
you had previously level teleported past that point (which is possible when
starting from the Valley rather than from higher up), so would still issue
that once-only prompt if you used the stairs later.  Mark the prompt as if
it has already given whenever you reach a Gehennom level beyond the Valley.

doc/fixes34.4
src/do.c

index 67d44f2acc421a225bebd8a1e0855db3b65b8733..169d6cab455240bf8cf138b3f1063079e07f4caf 100644 (file)
@@ -130,6 +130,8 @@ hero could still see for brief period after being blinded by potion vapors
 avoid crash when thrown potion hits bars before a monster
 don't give messages about seeing things happen while asleep
 protect hero from mind flayer's remote mental blast during successful prayer
+recognize if hero has already entered Gehennom by means other than usual route
+       so that prompt can be skipped if Valley's stairs are subsequently used
 
 
 Platform- and/or Interface-Specific Fixes
index d8f92ef83a7af01fc7c6ebf14fcf73d2e0ab78e8..b38e5c05afbaa3082fdb000a3545d055cf0ec3ac 100644 (file)
--- a/src/do.c
+++ b/src/do.c
@@ -1315,6 +1315,8 @@ boolean at_stairs, falling, portal;
                You_hear("groans and moans everywhere.");
            } else pline("It is hot here.  You smell smoke...");
        }
+       /* in case we've managed to bypass the Valley's stairway down */
+       if (Inhell && !Is_valley(&u.uz)) u.uevent.gehennom_entered = 1;
 
        if (familiar) {
            static const char * const fam_msgs[4] = {