From 24f2e4187c902f4ad880c5363d326e9f03532be0 Mon Sep 17 00:00:00 2001 From: nothere Date: Mon, 1 Dec 2003 14:21:04 +0000 Subject: [PATCH] =?utf8?q?=E8=B5=B0=E3=82=8B=E5=88=A4=E5=AE=9A=E3=81=AEsee?= =?utf8?q?=5Fwall()=E3=81=A7=E3=83=89=E3=82=A2=E3=81=AF=E5=A3=81=E3=81=A8?= =?utf8?q?=E3=81=BF=E3=81=AA=E3=81=95=E3=81=AA=E3=81=84=E3=82=88=E3=81=86?= =?utf8?q?=E3=81=AB=E3=81=97=E3=81=9F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cmd1.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/cmd1.c b/src/cmd1.c index 70233907f..eb944a583 100644 --- a/src/cmd1.c +++ b/src/cmd1.c @@ -4176,21 +4176,18 @@ static int see_wall(int dir, int y, int x) { /* Feature code (applying "mimic" field) */ s16b feat = get_feat_mimic(c_ptr); - feature_type *f_ptr; + feature_type *f_ptr = &f_info[feat]; /* Wall grids are known walls */ - if (!player_can_enter(feat, 0)) return TRUE; - - f_ptr = &f_info[feat]; + if (!player_can_enter(feat, 0)) return !have_flag(f_ptr->flags, FF_DOOR); /* Don't run on a tree unless explicitly requested */ if (have_flag(f_ptr->flags, FF_AVOID_RUN) && !ignore_avoid_run) return TRUE; /* Don't run in a wall */ - if (!have_flag(f_ptr->flags, FF_MOVE) && - !have_flag(f_ptr->flags, FF_CAN_FLY)) - return TRUE; + if (!have_flag(f_ptr->flags, FF_MOVE) && !have_flag(f_ptr->flags, FF_CAN_FLY)) + return !have_flag(f_ptr->flags, FF_DOOR); } return FALSE; -- 2.11.0