From c8dccc63ff144974e515e8572b5b9c0dd9b353c3 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Mon, 12 Aug 2002 08:25:48 +0000 Subject: [PATCH] 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. --- doc/fixes34.1 | 1 + src/do.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 56bcdcf6d..90bb2b100 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -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 diff --git a/src/do.c b/src/do.c index 16409aa46..e876a21cb 100644 --- a/src/do.c +++ b/src/do.c @@ -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;