From a326f622f6ed1f9f2bd5ac6f1eb0998a99417a88 Mon Sep 17 00:00:00 2001 From: Michael Meyer Date: Tue, 10 Aug 2021 20:14:27 -0400 Subject: [PATCH] Permit blind feeling for objects on trapdoor Items on a trap door or on the edge of a hole are accessible (they can be picked up, kicked, etc), but these locations were considered inaccessible for purposes of feeling the ground for objects while blind. --- src/invent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/invent.c b/src/invent.c index 50c8b755b..66686b900 100644 --- a/src/invent.c +++ b/src/invent.c @@ -3431,7 +3431,8 @@ look_here(int obj_cnt, /* obj_cnt > 0 implies that autopickup is in progress */ } if (dfeature && !drift && !strcmp(dfeature, surface(u.ux, u.uy))) dfeature = 0; /* ice already identified */ - if (!can_reach_floor(TRUE)) { + trap = t_at(u.ux, u.uy); + if (!can_reach_floor(trap && is_pit(trap->ttyp))) { pline("But you can't reach it!"); return 0; }