OSDN Git Service

サブウィンドウのアップデートの不備、さっきの変更ではまだ残っていたので再修正。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 24 Jan 2003 00:52:06 +0000 (00:52 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 24 Jan 2003 00:52:06 +0000 (00:52 +0000)
また、抹殺後にモンスターの光源がアップデートされていなかったバグ修正。

src/cave.c
src/melee2.c
src/monster2.c

index 857be56..79d52f5 100644 (file)
@@ -2143,6 +2143,9 @@ void lite_spot(int y, int x)
                if (use_bigtile)
                        Term_queue_char(panel_col_of(x)+1, y-panel_row_prt, 255, -1);
 #endif /* USE_TRANSPARENCY */
+
+               /* Update sub-windows */
+               p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
        }
 }
 
index 16354e4..4d0e7f0 100644 (file)
@@ -3502,9 +3502,6 @@ msg_print("
                        /* Redraw the new grid */
                        lite_spot(ny, nx);
 
-                       /* Update sub-windows */
-                       p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
-
                        if (p_ptr->riding == m_idx)
                        {
                                verify_panel();
@@ -3514,6 +3511,9 @@ msg_print("
 
                                /* Update the monsters */
                                p_ptr->update |= (PU_DISTANCE);
+
+                               /* Update sub-windows */
+                               p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
                        }
 
                        /* Possible disturb */
index 98132ac..482001c 100644 (file)
@@ -261,6 +261,9 @@ void delete_monster_idx(int i)
 
        /* Visual update */
        lite_spot(y, x);
+
+       /* Update some things */
+       p_ptr->update |= (PU_MON_LITE);
 }