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.
This commit is contained in:
nethack.rankin
2003-12-05 08:54:32 +00:00
parent 3df53e952c
commit 9860caf748

View 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);