X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fwarning.c;h=8a48a3452a3552c4ad525732269efe2200d813f0;hb=3cd7fa485210dbb89cb686ac8053b94128081b93;hp=85c2931e47a893f3cc79f151eebfb4cc36ed1825;hpb=0336a71f38b28ae1d1cd164bd0caa338446553a9;p=hengband%2Fhengband.git 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);