From: nethack.allison Date: Thu, 16 Dec 2004 10:54:00 +0000 (+0000) Subject: another follow-up bit X-Git-Tag: MOVE2GIT~1389 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a893fbe2027ad02f3a38c2a569a82faec1b09b7;p=nethack another follow-up bit --- diff --git a/src/pickup.c b/src/pickup.c index 42fcd597a..67a5c13f9 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -2542,12 +2542,12 @@ struct obj *box; /* or bag */ char yourbuf[BUFSZ]; observe_quantum_cat(box); - box->cknown = 1; if (!Has_contents(box)) /* evidently a live cat came out */ /* container type of "large box" is inferred */ pline("%sbox is now empty.", Shk_Your(yourbuf, box)); else /* holds cat corpse or other random stuff */ empty_it = TRUE; + box->cknown = 1; } else if (!Has_contents(box)) { box->cknown = 1; pline("It's empty.");