B07002 - hiding under nothing?

Clear the uundetected status during level changes in case
the character was hiding under something immediately prior to the
change.  Don't set hidden status at the destination even when
there's something to hide under--it'll take a turn to hide again.
This commit is contained in:
nethack.rankin
2002-08-12 08:25:48 +00:00
parent a8ac6f6cc6
commit c8dccc63ff
2 changed files with 3 additions and 1 deletions

View File

@@ -199,6 +199,7 @@ cancel chat direction cancels the chat
prevent "the mimic looks better" on an unrecognized mimic hit with
healing spell
after forcefighting a concealed lurker, the lurker wouldn't fight back
when polymorphed into a hider, cease hiding during level changes
Platform- and/or Interface-Specific Fixes

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)do.c 3.4 2002/05/31 */
/* SCCS Id: @(#)do.c 3.4 2002/08/11 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -987,6 +987,7 @@ boolean at_stairs, falling, portal;
fill_pit(u.ux, u.uy);
u.ustuck = 0; /* idem */
u.uinwater = 0;
u.uundetected = 0; /* not hidden, even if means are available */
keepdogs(FALSE);
if (u.uswallow) /* idem */
u.uswldtim = u.uswallow = 0;