yet another grammar bit

<Someone> mentioned a bad grammar bit in the newsgroup.  Backported
to 3.4.2 as well to save us from many repeat bug reports.
This commit is contained in:
cohrs
2003-03-09 17:47:05 +00:00
parent 662688508a
commit 8de1ed25c0
2 changed files with 7 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ General Fixes and Modified Features
-----------------------------------
avoid panic when secondary weapon is cursed while generating bones level
don't crash when applying a figurine, candle, or bell that gets used up
grammar bits
Platform- and/or Interface-Specific Fixes

View File

@@ -968,7 +968,12 @@ register const char *let,*word;
}
if(ilet == def_oc_syms[COIN_CLASS]) {
if (!usegold) {
You("cannot %s gold.", word);
if (!strncmp(word, "rub on ", 7)) {
/* the dangers of building sentences... */
You("cannot rub gold%s.", word + 3);
} else {
You("cannot %s gold.", word);
}
return(struct obj *)0;
#ifndef GOLDOBJ
} else if (!allowgold) {