]> granicus.if.org Git - nethack/commitdiff
fix U770 - grammar bug: The gold pieces hits the [monster]
authornethack.rankin <nethack.rankin>
Fri, 5 Dec 2003 08:54:32 +0000 (08:54 +0000)
committernethack.rankin <nethack.rankin>
Fri, 5 Dec 2003 08:54:32 +0000 (08:54 +0000)
     Report was for scattering gold during a land mine explosion, but the
message was delivered by the widely used hit().  Bug was caused by a typo
in vtense() when handling a subject containing a space.

src/objnam.c

index 36d964b5c10d22aff0877a3290c564f55390aabe..84f8e634b55db2d699d28ce4683ca0300ad6e136 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)objnam.c   3.4     2003/05/09      */
+/*     SCCS Id: @(#)objnam.c   3.4     2003/12/04      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -1149,7 +1149,7 @@ register const char *verb;
                    /* also check for <prefix><space><special_subj>
                       to catch things like "the invisible erinys" */
                    if (len > ltmp && *(spot - ltmp) == ' ' &&
-                           strncmpi(*spec, spot - ltmp + 1, ltmp)) goto sing;
+                          !strncmpi(*spec, spot - ltmp + 1, ltmp)) goto sing;
                }
 
                return strcpy(buf, verb);