OSDN Git Service

トラップ解除魔法を使って'x'が消えた場合のみにobviousを立てて, 元々'x'
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 12 Aug 2003 08:42:34 +0000 (08:42 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 12 Aug 2003 08:42:34 +0000 (08:42 +0000)
がなかったグリッドではobviousが立たないように変更.

src/spells1.c

index 2323bd1..eac72be 100644 (file)
@@ -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;