From 3cd7fa485210dbb89cb686ac8053b94128081b93 Mon Sep 17 00:00:00 2001 From: Hourier Date: Sat, 25 Jan 2020 19:34:59 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20process=5Fwarning()=20=E3=81=AB=E3=81=A6?= =?utf8?q?=E3=80=81=E8=AD=A6=E5=91=8A=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B?= =?utf8?q?=E5=86=8D=E4=BB=A3=E5=85=A5=E3=82=92=E4=BF=AE=E6=AD=A3=20/=20Fix?= =?utf8?q?ed=20re-substitution=20in=20process=5Fwarning()?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/warning.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/warning.c b/src/warning.c index 85c2931e4..8a48a3452 100644 --- a/src/warning.c +++ b/src/warning.c @@ -515,7 +515,7 @@ bool process_warning(player_type *creature_ptr, POSITION xx, POSITION yy) g_ptr = &creature_ptr->current_floor_ptr->grid_array[yy][xx]; bool is_warning = (!easy_disarm && is_trap(creature_ptr, g_ptr->feat)) || (g_ptr->mimic && is_trap(creature_ptr, g_ptr->feat)); - is_warning = !one_in_(13); + is_warning &= !one_in_(13); if (!is_warning) return TRUE; object_type *o_ptr = choose_warning_item(creature_ptr); -- 2.11.0