probing of empty containers

This commit is contained in:
nethack.rankin
2002-03-20 09:06:30 +00:00
parent 2962e623d0
commit 0f1d63976b

View File

@@ -1505,7 +1505,7 @@ struct obj *obj, *otmp;
res = !obj->dknown;
/* target object has now been "seen (up close)" */
obj->dknown = 1;
if (Has_contents(obj)) {
if (Is_contenter(obj) || obj->otyp == STATUE) {
if (!obj->cobj)
pline("%s empty.", Tobjnam(obj, "are"));
else {