]> granicus.if.org Git - nethack/commitdiff
follow-up to Allow BUC with menustyles other than full.
authornethack.allison <nethack.allison>
Tue, 19 Feb 2002 08:29:31 +0000 (08:29 +0000)
committernethack.allison <nethack.allison>
Tue, 19 Feb 2002 08:29:31 +0000 (08:29 +0000)
src/invent.c

index 3080967be3abe132eba0cab12092f421dcb6ab2d..5fa211ce280afb6d4882617cab5537025a590841 100644 (file)
@@ -1049,21 +1049,21 @@ STATIC_PTR int
 ckblessed(otmp)
 register struct obj *otmp;
 {
-       return((int)(otmp->blessed));
+       return((int)(otmp->bknown && otmp->blessed));
 }
 
 STATIC_PTR int
 ckuncursed(otmp)
 register struct obj *otmp;
 {
-       return((int)(!otmp->blessed && !otmp->cursed));
+       return((int)(otmp->bknown && !otmp->blessed && !otmp->cursed));
 }
 
 STATIC_PTR int
 ckcursed(otmp)
 register struct obj *otmp;
 {
-       return((int)(otmp->cursed));
+       return((int)(otmp->bknown && otmp->cursed));
 }
 
 STATIC_PTR int