finding traps while blind

<Someone> reported that when levitating and blind, he was getting
"You float over the hole" without it showing up on the map.  Easiest way
to reproduce:  zap a wand of digging downwards while levitating blind,
move off the spot and back over it.

     Make sure that all traps created by the player are mapped.  For other
traps, it was about 50:50 whether the trap triggering message yields enough
information to warrant forcibly mapping the trap when blind.
This commit is contained in:
nethack.rankin
2005-04-14 03:26:56 +00:00
parent 68dc0831bc
commit 61dda66355
5 changed files with 41 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)polyself.c 3.5 2004/11/11 */
/* SCCS Id: @(#)polyself.c 3.5 2005/04/13 */
/* Copyright (C) 1987, 1988, 1989 by Ken Arromdee */
/* NetHack may be freely redistributed. See license for details. */
@@ -919,10 +919,9 @@ dospinweb()
}
ttmp = maketrap(u.ux, u.uy, WEB);
if (ttmp) {
ttmp->tseen = 1;
ttmp->madeby_u = 1;
feeltrap(ttmp);
}
newsym(u.ux, u.uy);
return(1);
}