senseself()/canspotself()
Make the names of the macros for handling the hero be similar to those for monsters (where mis-use of `sensemon()' was the cause of a recently reported bug). `senseself()' becomes more restrictive in what it specifies, and current uses of it are replaced by new `canspotself()'.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)pager.c 3.5 2003/08/13 */
|
||||
/* SCCS Id: @(#)pager.c 3.5 2005/06/21 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -64,7 +64,7 @@ lookat(x, y, buf, monbuf)
|
||||
|
||||
buf[0] = monbuf[0] = 0;
|
||||
glyph = glyph_at(x,y);
|
||||
if (u.ux == x && u.uy == y && senseself()) {
|
||||
if (u.ux == x && u.uy == y && canspotself()) {
|
||||
char race[QBUFSZ];
|
||||
|
||||
/* if not polymorphed, show both the role and the race */
|
||||
|
||||
Reference in New Issue
Block a user