]> granicus.if.org Git - nethack/commitdiff
takes your corpse
authorcohrs <cohrs>
Sun, 10 Feb 2002 18:58:12 +0000 (18:58 +0000)
committercohrs <cohrs>
Sun, 10 Feb 2002 18:58:12 +0000 (18:58 +0000)
use corpse_xname to generate corpse names as a result of yname() and
also as used in the steal code.  Now messages read "your XXX corpse".

src/detect.c

index e9944adbbdb8fdd6b83ccb35914eec163ffcf11a..31f1bc8b4fd117a740c881796079e05e39e38611 100644 (file)
@@ -208,7 +208,7 @@ register struct obj *sobj;
        if (sobj) {
                if (youmonst.data == &mons[PM_GOLD_GOLEM])
                        You_feel("like a million %s!", currency(2L));
-               else if (sobj && hidden_gold() ||
+               else if (hidden_gold() ||
 #ifndef GOLDOBJ
                                u.ugold)
 #else