From: nothere Date: Tue, 12 Aug 2003 08:42:34 +0000 (+0000) Subject: トラップ解除魔法を使って'x'が消えた場合のみにobviousを立てて, 元々'x' X-Git-Tag: v2.1.2~1225 X-Git-Url: http://git.osdn.net/view?p=hengbandforosx%2Fhengbandosx.git;a=commitdiff_plain;h=c9dd2bdb0b8449de584c1a8df06482e0a0d29f1f トラップ解除魔法を使って'x'が消えた場合のみにobviousを立てて, 元々'x' がなかったグリッドではobviousが立たないように変更. --- diff --git a/src/spells1.c b/src/spells1.c index 2323bd1b3..eac72be7c 100644 --- a/src/spells1.c +++ b/src/spells1.c @@ -781,12 +781,12 @@ msg_print(" /* Remove "unsafe" flag if player is not blind */ if (!p_ptr->blind && player_has_los_bold(y, x)) { + obvious = (c_ptr->info & CAVE_UNSAFE) ? TRUE : FALSE; + c_ptr->info &= ~(CAVE_UNSAFE); /* Redraw */ lite_spot(y, x); - - obvious = TRUE; } break; @@ -836,12 +836,12 @@ msg_print(" /* Remove "unsafe" flag if player is not blind */ if (!p_ptr->blind && player_has_los_bold(y, x)) { + obvious = (c_ptr->info & CAVE_UNSAFE) ? TRUE : FALSE; + c_ptr->info &= ~(CAVE_UNSAFE); /* Redraw */ lite_spot(y, x); - - obvious = TRUE; } break;