follow-up to Allow BUC with menustyles other than full.

This commit is contained in:
nethack.allison
2002-02-19 08:29:31 +00:00
parent e054b25590
commit 126294b4de
+3 -3
View File
@@ -1049,21 +1049,21 @@ STATIC_PTR int
ckblessed(otmp) ckblessed(otmp)
register struct obj *otmp; register struct obj *otmp;
{ {
return((int)(otmp->blessed)); return((int)(otmp->bknown && otmp->blessed));
} }
STATIC_PTR int STATIC_PTR int
ckuncursed(otmp) ckuncursed(otmp)
register struct obj *otmp; register struct obj *otmp;
{ {
return((int)(!otmp->blessed && !otmp->cursed)); return((int)(otmp->bknown && !otmp->blessed && !otmp->cursed));
} }
STATIC_PTR int STATIC_PTR int
ckcursed(otmp) ckcursed(otmp)
register struct obj *otmp; register struct obj *otmp;
{ {
return((int)(otmp->cursed)); return((int)(otmp->bknown && otmp->cursed));
} }
STATIC_PTR int STATIC_PTR int