]> granicus.if.org Git - nethack/commitdiff
plural of lotus is lotuses
authorcohrs <cohrs>
Tue, 19 Feb 2002 04:56:15 +0000 (04:56 +0000)
committercohrs <cohrs>
Tue, 19 Feb 2002 04:56:15 +0000 (04:56 +0000)
another makeplural special case

src/objnam.c

index 6f5b548d0146b74c562fb9ab3d51a3e4e9188e07..4c4dfa3f2e1e39b99db0bbe962e4a79b44bf11d2 100644 (file)
@@ -1256,8 +1256,10 @@ const char *oldstr;
                goto bottom;
        }
 
-       /* fungus/fungi, homunculus/homunculi, but wumpuses */
-       if (!strcmp(spot-1, "us") && (len < 6 || strcmp(spot-5, "wumpus"))) {
+       /* fungus/fungi, homunculus/homunculi, but lotuses, wumpuses */
+       if (!strcmp(spot-1, "us") &&
+           (len < 5 || (strcmp(spot-4, "lotus") &&
+                        (len < 6 || strcmp(spot-5, "wumpus"))))) {
                *(spot--) = (char)0;
                *spot = 'i';
                goto bottom;