From 9860caf748c08419296595ed3b54aa980038c82a Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Fri, 5 Dec 2003 08:54:32 +0000 Subject: [PATCH] fix U770 - grammar bug: The gold pieces hits the [monster] 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objnam.c b/src/objnam.c index 36d964b5c..84f8e634b 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -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 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);