From b81c53b630c474165eadad6fcf913b7bf17287f9 Mon Sep 17 00:00:00 2001 From: nothere Date: Mon, 22 Dec 2003 14:55:56 +0000 Subject: [PATCH] =?utf8?q?=E9=96=89=E3=81=98=E3=82=8B=E3=81=93=E3=81=A8?= =?utf8?q?=E3=81=AE=E3=81=A7=E3=81=8D=E3=82=8B=E5=9C=B0=E5=BD=A2=E3=81=AE?= =?utf8?q?=E4=B8=8A=E3=81=AB=E3=82=A2=E3=82=A4=E3=83=86=E3=83=A0=E3=81=8C?= =?utf8?q?=E3=81=82=E3=81=A3=E3=81=A6,=20=E9=96=89=E3=81=98=E3=81=9F?= =?utf8?q?=E5=BE=8C=E3=81=AE=E5=9C=B0=E5=BD=A2=E3=81=ABDROP=E3=81=8C=20?= =?utf8?q?=E3=81=82=E3=82=8A=E3=82=A2=E3=82=A4=E3=83=86=E3=83=A0=E3=81=8C?= =?utf8?q?=E7=BD=AE=E3=81=91=E3=82=8B=E5=A0=B4=E5=90=88=E3=81=AF=E9=96=89?= =?utf8?q?=E3=81=98=E3=82=8B=E3=81=93=E3=81=A8=E3=81=8C=E3=81=A7=E3=81=8D?= =?utf8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E5=A4=89=E6=9B=B4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cmd2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cmd2.c b/src/cmd2.c index 246097819..2336b37f7 100644 --- a/src/cmd2.c +++ b/src/cmd2.c @@ -1321,8 +1321,11 @@ static bool do_cmd_close_aux(int y, int x) /* Open door */ if (have_flag(f_info[old_feat].flags, FF_CLOSE)) { + s16b closed_feat = feat_state(old_feat, FF_CLOSE); + /* Hack -- object in the way */ - if ((c_ptr->o_idx || (c_ptr->info & CAVE_OBJECT)) && (feat_state(old_feat, FF_CLOSE) != old_feat)) + if ((c_ptr->o_idx || (c_ptr->info & CAVE_OBJECT)) && + (closed_feat != old_feat) && !have_flag(f_info[closed_feat].flags, FF_DROP)) { /* Message */ #ifdef JP -- 2.11.0