/* muse.c */
boolean m_using; /* kludge to use mondided instead of killed */
- /* objname.c */
- /* distantname used by distant_name() to pass extra information to
- xname_flags(); it would be much cleaner if this were a parameter,
- but that would require all of the xname() and doname() calls to be
- modified */
- int distantname;
-
/* pickup.c */
int oldcap; /* last encumberance */
/* current_container is set in use_container(), to be used by the
return TRUE;
}
+/* used by distant_name() to pass extra information to xname_flags();
+ it would be much cleaner if this were a parameter, but that would
+ require all of the xname() and doname() calls to be modified */
+static int distantname = 0;
+
/* Give the name of an object seen at a distance. Unlike xname/doname,
* we don't want to set dknown if it's not set already.
*/
* object is within X-ray radius and only treat it as distant when
* beyond that radius. Logic is iffy but result might be interesting.
*/
- ++g.distantname;
+ ++distantname;
str = (*func)(obj);
- --g.distantname;
+ --distantname;
return str;
}
*/
if (!nn && ocl->oc_uses_known && ocl->oc_unique)
obj->known = 0;
- if (!Blind && !g.distantname)
+ if (!Blind && !distantname)
obj->dknown = TRUE;
if (Role_if(PM_PRIEST))
obj->bknown = TRUE;