]> granicus.if.org Git - nethack/commitdiff
fix incorrect plural of Nazgul
authornethack.rankin <nethack.rankin>
Tue, 23 Dec 2003 02:32:17 +0000 (02:32 +0000)
committernethack.rankin <nethack.rankin>
Tue, 23 Dec 2003 02:32:17 +0000 (02:32 +0000)
     Incorporate <Someone>'s patch to skip adding of a final "s" to
"Nazgul" when pluralizing.

doc/fixes34.4
src/objnam.c

index 8d73a446a744680863058b69d7e44c5314539455..262cc774655d2a26e61a870da51d5d71cb32dd34 100644 (file)
@@ -9,6 +9,7 @@ wizard mode: avoid division by 0 crash for level teleport in the endgame if
 don't #sit on an object in a pit if you're only on the precipice
 fix message when pushing a boulder into a pool while riding
 when you're teetering on the edge of a pit you can use '>' to enter the pit
+plural of "Nazgul" is "Nazgul" not "Nazguls"
 
 
 Platform- and/or Interface-Specific Fixes
index 84f8e634b55db2d699d28ce4683ca0300ad6e136..89d959dd0a497b4f51f3bf73081e6c32a86412f3 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)objnam.c   3.4     2003/12/04      */
+/*     SCCS Id: @(#)objnam.c   3.4     2003/12/22      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -1354,7 +1354,8 @@ const char *oldstr;
                        !strcmp(spot-7, "shuriken") ||
                        !strcmp(spot-4, "tengu") ||
                        !strcmp(spot-4, "manes"))) ||
-           (len >= 6 && !strcmp(spot-5, "ki-rin")) ||
+           (len >= 6 && (!strcmp(spot-5, "ki-rin") ||
+                       !strcmp(spot-5, "Nazgul"))) ||
            (len >= 7 && !strcmp(spot-6, "gunyoki")))
                goto bottom;