grammar tidbit (fixes #R835)
Add special case to an() to produce "a one-eyed one-horned flying purple people eater" instead of "an one-eyed ...".
This commit is contained in:
+2
-1
@@ -1,4 +1,4 @@
|
|||||||
/* SCCS Id: @(#)objnam.c 3.4 2002/03/22 */
|
/* SCCS Id: @(#)objnam.c 3.4 2002/04/30 */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -867,6 +867,7 @@ register const char *str;
|
|||||||
strcmp(str, "iron bars") &&
|
strcmp(str, "iron bars") &&
|
||||||
strcmp(str, "ice")) {
|
strcmp(str, "ice")) {
|
||||||
if (index(vowels, *str) &&
|
if (index(vowels, *str) &&
|
||||||
|
strncmp(str, "one-", 4) &&
|
||||||
strncmp(str, "useful", 6) &&
|
strncmp(str, "useful", 6) &&
|
||||||
strncmp(str, "unicorn", 7) &&
|
strncmp(str, "unicorn", 7) &&
|
||||||
strncmp(str, "uranium", 7) &&
|
strncmp(str, "uranium", 7) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user