From 8394f9ba96c64398cbffbc5bc7af29bddadc1de4 Mon Sep 17 00:00:00 2001 From: deskull Date: Tue, 2 Jun 2020 00:39:58 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20#40301=20calc=5Fweapon=5Fone=5Fhand()?= =?utf8?q?=E3=81=AE=E6=88=BB=E3=82=8A=E5=80=A4=E3=81=8B=E3=82=89=E3=81=AE?= =?utf8?q?=E5=88=86=E5=B2=90=E3=81=8C=E7=9C=9F=E5=81=BD=E9=80=86=E3=81=AB?= =?utf8?q?=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=81=A7?= =?utf8?q?=E4=BF=AE=E6=AD=A3=EF=BC=8E=20/=20Fixed=20the=20problem=20that?= =?utf8?q?=20the=20branch=20from=20the=20return=20value=20of=20calc=5Fweap?= =?utf8?q?on=5Fone=5Fhand=20()=20was=20the=20opposite=20of=20true=20and=20?= =?utf8?q?false.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/view/status-first-page.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/status-first-page.c b/src/view/status-first-page.c index b360ef50b..4298a5169 100644 --- a/src/view/status-first-page.c +++ b/src/view/status-first-page.c @@ -261,7 +261,7 @@ static void calc_two_hands(player_type *creature_ptr, int *damage, int *to_h) } o_ptr = &creature_ptr->inventory_list[INVEN_RARM + i]; - if (calc_weapon_one_hand(o_ptr, i, damage, &basedam)) continue; + if (!calc_weapon_one_hand(o_ptr, i, damage, &basedam)) continue; to_h[i] = 0; bool poison_needle = FALSE; -- 2.11.0