From d04c66657c4333f349d8f09e006b6165619dfc3e Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Wed, 7 Aug 2002 07:07:38 +0000 Subject: [PATCH] vtense special case for *ss This fixes the reported "The looking glass miss the mountain nymph." --- doc/fixes34.1 | 1 + src/objnam.c | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index b36900c9e..46583ce52 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -188,6 +188,7 @@ don't print ape data.base description for other words that end in "ape" prevent crash after animating a statue via stone to flesh by avoiding use of the obj in newsym() after it was deleted print "magic spreads" message when eating ring of increase damage, etc. +grammar tid: "The looking glass miss the ." Platform- and/or Interface-Specific Fixes diff --git a/src/objnam.c b/src/objnam.c index 2dd2a0a90..5c843669d 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)objnam.c 3.4 2002/05/30 */ +/* SCCS Id: @(#)objnam.c 3.4 2002/08/06 */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1043,10 +1043,11 @@ register const char *verb; if (!spot) spot = subj + len - 1; /* - * plural: anything that ends in 's', but not '*us'. + * plural: anything that ends in 's', but not '*us' or '*ss'. * Guess at a few other special cases that makeplural creates. */ - if ((*spot == 's' && spot != subj && *(spot-1) != 'u') || + if ((*spot == 's' && spot != subj && + (*(spot-1) != 'u' && *(spot-1) != 's')) || ((spot - subj) >= 4 && !strncmp(spot-3, "eeth", 4)) || ((spot - subj) >= 3 && !strncmp(spot-3, "feet", 4)) || ((spot - subj) >= 2 && !strncmp(spot-1, "ia", 2)) || -- 2.40.0