From bc83f94869fce6943beb603aa2267393c85b9de3 Mon Sep 17 00:00:00 2001 From: nothere Date: Sat, 23 Aug 2003 14:29:01 +0000 Subject: [PATCH] =?utf8?q?1.70=E3=81=A7=E3=81=AF{!}=E3=81=A8=E3=81=84?= =?utf8?q?=E3=81=86=E9=8A=98=E3=81=AE=E5=A0=B4=E5=90=88=E3=81=AB=E3=83=90?= =?utf8?q?=E3=82=B0=E3=81=8C=E6=AE=8B=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= =?utf8?q?=E3=81=AE=E3=81=A7,=20get=5Fitem=5Fallow()=E3=81=AE=E6=9C=80=20?= =?utf8?q?=E5=88=9D=E3=81=A7command=5Fcmd=20=3D=3D=200=E3=81=AA=E3=82=89?= =?utf8?q?=E3=81=B0TRUE=E3=82=92=E8=BF=94=E3=81=99=E3=82=88=E3=81=86?= =?utf8?q?=E3=81=AB=E4=BF=AE=E6=AD=A3.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/object1.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/object1.c b/src/object1.c index 396f898f0..f712b1284 100644 --- a/src/object1.c +++ b/src/object1.c @@ -5355,6 +5355,8 @@ static bool get_item_allow(int item) object_type *o_ptr; + if (!command_cmd) return TRUE; /* command_cmd is no longer effective */ + /* Inventory */ if (item >= 0) { @@ -5376,11 +5378,8 @@ static bool get_item_allow(int item) /* Process preventions */ while (s) { - /* Ignore the "!!" inscription */ - if (s[1] == '!') s++; - /* Check the "restriction" */ - else if ((s[1] == command_cmd) || (s[1] == '*')) + if ((s[1] == command_cmd) || (s[1] == '*')) { /* Verify the choice */ #ifdef JP -- 2.11.0