]> granicus.if.org Git - nethack/commitdiff
yet another grammar bit
authorcohrs <cohrs>
Sun, 9 Mar 2003 17:47:05 +0000 (17:47 +0000)
committercohrs <cohrs>
Sun, 9 Mar 2003 17:47:05 +0000 (17:47 +0000)
<Someone> mentioned a bad grammar bit in the newsgroup.  Backported
to 3.4.2 as well to save us from many repeat bug reports.

doc/fixes34.2
src/invent.c

index d66296873983dd59b3b805fd5023530f826558e1..5835fe8f4a9a224af47a19471059c8bd3ff220a0 100644 (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
index 0ac4fbb455a8f5bb9c696da5d8cfa5feca2e11c0..310d9ad348959cb3eb80f8867e12bfe6c542363c 100644 (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) {