takes your corpse
use corpse_xname to generate corpse names as a result of yname() and also as used in the steal code. Now messages read "your XXX corpse".
This commit is contained in:
@@ -1084,7 +1084,10 @@ struct obj *obj;
|
||||
char *s = shk_your(outbuf, obj); /* assert( s == outbuf ); */
|
||||
int space_left = BUFSZ - strlen(s) - sizeof " ";
|
||||
|
||||
return strncat(strcat(s, " "), xname(obj), space_left);
|
||||
/* "your corpse" is silly, use corpse_xname for this case */
|
||||
return strncat(strcat(s, " "),
|
||||
(obj->otyp == CORPSE) ?
|
||||
corpse_xname(obj, FALSE) : xname(obj), space_left);
|
||||
}
|
||||
|
||||
/* capitalized variant of yname() */
|
||||
|
||||
Reference in New Issue
Block a user