OSDN Git Service

トラップ解除魔法を使って魔法の軌道が見えた場合は'x'を消すように変更.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 12 Aug 2003 08:34:05 +0000 (08:34 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 12 Aug 2003 08:34:05 +0000 (08:34 +0000)
盲目状態では軌道が見えないので'x'は消えない.

src/spells1.c

index d8764c3..2323bd1 100644 (file)
@@ -778,6 +778,17 @@ msg_print("
                                }
                        }
 
+                       /* Remove "unsafe" flag if player is not blind */
+                       if (!p_ptr->blind && player_has_los_bold(y, x))
+                       {
+                               c_ptr->info &= ~(CAVE_UNSAFE);
+
+                               /* Redraw */
+                               lite_spot(y, x);
+
+                               obvious = TRUE;
+                       }
+
                        break;
                }
 
@@ -822,6 +833,17 @@ msg_print("
                        /* Notice */
                        note_spot(y, x);
 
+                       /* Remove "unsafe" flag if player is not blind */
+                       if (!p_ptr->blind && player_has_los_bold(y, x))
+                       {
+                               c_ptr->info &= ~(CAVE_UNSAFE);
+
+                               /* Redraw */
+                               lite_spot(y, x);
+
+                               obvious = TRUE;
+                       }
+
                        break;
                }