could not move normally
hero's appearance should change immediately after mimicing completes
avoid some uses of "it" in killer messages
+avoid "singular of null?" warning for info lookup of obscure user input
Platform- and/or Interface-Specific Fixes
-/* SCCS Id: @(#)pager.c 3.4 2003/06/29 */
+/* SCCS Id: @(#)pager.c 3.4 2003/08/13 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
/* newsym lets you know of the trap, so mention it here */
if (tt == BEAR_TRAP || tt == PIT ||
- tt == SPIKED_PIT ||tt == WEB) {
- Strcat(buf, ", trapped in ");
- Strcat(buf, defsyms[trap_to_defsym(tt)].explanation);
- }
+ tt == SPIKED_PIT || tt == WEB)
+ Sprintf(eos(buf), ", trapped in %s",
+ an(defsyms[trap_to_defsym(tt)].explanation));
}
{
if (*dbase_str) {
/* adjust the input to remove "named " and convert to lower case */
char *alt = 0; /* alternate description */
+
if ((ep = strstri(dbase_str, " named ")) != 0)
alt = ep + 7;
else
ep = strstri(dbase_str, " called ");
- if (ep) *ep = '\0';
- else if ((ep = strstri(dbase_str, ", ")) != 0) *ep = '\0';
+ if (!ep) ep = strstri(dbase_str, ", ");
+ if (ep && ep > dbase_str) *ep = '\0';
/*
* If the object is named, then the name is the alternate description;