OSDN Git Service

トラップ解除魔法の軌道が"見える"場合は必ずobviousを立てるように変更.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 12 Aug 2003 09:26:32 +0000 (09:26 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 12 Aug 2003 09:26:32 +0000 (09:26 +0000)
src/spells1.c

index eac72be..2323bd1 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;