OSDN Git Service

*破壊*や地震で地形が暗くなった際に, 光源持ちのモンスターが消えた場合
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 28 Dec 2003 17:00:56 +0000 (17:00 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 28 Dec 2003 17:00:56 +0000 (17:00 +0000)
に跡地周辺がMARKされるバグを修正. なお, 以下の変更を含む.
* forget_view()で, panel_contains()を調べる必要はないので修正.

src/cave.c
src/spells2.c

index 703b8cc..32a7cf1 100644 (file)
@@ -3377,7 +3377,7 @@ void forget_view(void)
                /* Forget that the grid is viewable */
                c_ptr->info &= ~(CAVE_VIEW);
 
-               if (!panel_contains(y, x)) continue;
+               /* if (!panel_contains(y, x)) continue; */
 
                /* Update the screen */
                /* lite_spot(y, x); Perhaps don't need? */
index 823abb3..deb0225 100644 (file)
@@ -5083,6 +5083,9 @@ bool destroy_area(int y1, int x1, int r, bool in_generate)
                return (FALSE);
        }
 
+       /* Lose monster light */
+       if (!in_generate) clear_mon_lite();
+
        /* Big area of affect */
        for (y = (y1 - r); y <= (y1 + r); y++)
        {
@@ -5722,6 +5725,8 @@ msg_format("%^s
                }
        }
 
+       /* Lose monster light */
+       clear_mon_lite();
 
        /* Examine the quaked region */
        for (dy = -r; dy <= r; dy++)