OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
authorDeskull <deskull@users.sourceforge.jp>
Sun, 6 Jan 2019 05:33:54 +0000 (14:33 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sun, 6 Jan 2019 05:33:54 +0000 (14:33 +0900)
src/cmd2.c
src/mind.c
src/spells2.c
src/spells3.c

index 17a260b..4101bfd 100644 (file)
@@ -3060,7 +3060,6 @@ void do_cmd_fire_aux(INVENTORY_IDX item, object_type *j_ptr)
                                                        m_ptr->fx = nx;
                                                        m_ptr->fy = ny;
 
-                                                       /* Update the monster (new location) */
                                                        update_monster(c_mon_ptr->m_idx, TRUE);
 
                                                        lite_spot(ny, nx);
index 3d115a6..f44fcc4 100644 (file)
@@ -1689,13 +1689,8 @@ static bool cast_ninja_spell(int spell)
                /* Wake the monster up */
                (void)set_monster_csleep(m_idx, 0);
 
-               /* Update the monster (new location) */
                update_monster(m_idx, TRUE);
-
-               /* Redraw the old grid */
                lite_spot(target_row, target_col);
-
-               /* Redraw the new grid */
                lite_spot(ty, tx);
 
                if (r_info[m_ptr->r_idx].flags7 & (RF7_LITE_MASK | RF7_DARK_MASK))
index a9a82a7..6a73522 100644 (file)
@@ -1932,7 +1932,6 @@ bool earthquake_aux(POSITION cy, POSITION cx, POSITION r, MONSTER_IDX m_idx)
                                                        }
                                                }
 
-
                                                delete_monster(yy, xx);
 
                                                /* No longer safe */
@@ -1954,13 +1953,8 @@ bool earthquake_aux(POSITION cy, POSITION cx, POSITION r, MONSTER_IDX m_idx)
                                                m_ptr->fy = sy;
                                                m_ptr->fx = sx;
 
-                                               /* Update the monster (new location) */
                                                update_monster(m_idx, TRUE);
-
-                                               /* Redraw the old grid */
                                                lite_spot(yy, xx);
-
-                                               /* Redraw the new grid */
                                                lite_spot(sy, sx);
                                        }
                                }
@@ -2203,9 +2197,7 @@ static void cave_temp_room_lite(void)
                if (c_ptr->m_idx)
                {
                        int chance = 25;
-
                        monster_type    *m_ptr = &m_list[c_ptr->m_idx];
-
                        monster_race    *r_ptr = &r_info[m_ptr->r_idx];
                        update_monster(c_ptr->m_idx, FALSE);
 
index b614987..6fa6c13 100644 (file)
@@ -119,13 +119,8 @@ bool teleport_away(MONSTER_IDX m_idx, POSITION dis, BIT_FLAGS mode)
        /* Forget the counter target */
        reset_target(m_ptr);
 
-       /* Update the monster (new location) */
        update_monster(m_idx, TRUE);
-
-       /* Redraw the old grid */
        lite_spot(oy, ox);
-
-       /* Redraw the new grid */
        lite_spot(ny, nx);
 
        if (r_info[m_ptr->r_idx].flags7 & (RF7_LITE_MASK | RF7_DARK_MASK))
@@ -224,13 +219,8 @@ void teleport_monster_to(MONSTER_IDX m_idx, POSITION ty, POSITION tx, int power,
        m_ptr->fy = ny;
        m_ptr->fx = nx;
 
-       /* Update the monster (new location) */
        update_monster(m_idx, TRUE);
-
-       /* Redraw the old grid */
        lite_spot(oy, ox);
-
-       /* Redraw the new grid */
        lite_spot(ny, nx);
 
        if (r_info[m_ptr->r_idx].flags7 & (RF7_LITE_MASK | RF7_DARK_MASK))