OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
authordeskull <deskull@users.sourceforge.jp>
Fri, 8 Mar 2019 13:16:58 +0000 (22:16 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Fri, 8 Mar 2019 13:16:58 +0000 (22:16 +0900)
src/load.c
src/object2.c
src/rooms.c
src/snipe.c

index df9b42e..7a4e383 100644 (file)
@@ -2869,12 +2869,9 @@ static errr rd_dungeon_old(void)
 
                /* XXX XXX */
 
-               /* Monster */
                if (o_ptr->held_m_idx)
                {
                        monster_type *m_ptr;
-
-                       /* Monster */
                        m_ptr = &current_floor_ptr->m_list[o_ptr->held_m_idx];
 
                        /* Build a stack */
@@ -3186,13 +3183,9 @@ static errr rd_saved_floor(saved_floor_type *sf_ptr)
                /* Read the item */
                rd_item(o_ptr);
 
-
-               /* Monster */
                if (o_ptr->held_m_idx)
                {
                        monster_type *m_ptr;
-
-                       /* Monster */
                        m_ptr = &current_floor_ptr->m_list[o_ptr->held_m_idx];
 
                        /* Build a stack */
index 9e32981..51d7392 100644 (file)
@@ -73,12 +73,9 @@ void excise_object_idx(OBJECT_IDX o_idx)
        /* Object */
        j_ptr = &current_floor_ptr->o_list[o_idx];
 
-       /* Monster */
        if (j_ptr->held_m_idx)
        {
                monster_type *m_ptr;
-
-               /* Monster */
                m_ptr = &current_floor_ptr->m_list[j_ptr->held_m_idx];
 
                /* Scan all objects in the grid */
@@ -276,7 +273,6 @@ static void compact_objects_aux(OBJECT_IDX i1, OBJECT_IDX i2)
        }
        o_ptr = &current_floor_ptr->o_list[i1];
 
-       /* Monster */
        if (o_ptr->held_m_idx)
        {
                monster_type *m_ptr;
@@ -373,7 +369,6 @@ void compact_objects(int size)
                        /* Hack -- High level objects start out "immune" */
                        if (k_info[o_ptr->k_idx].level > cur_lev) continue;
 
-                       /* Monster */
                        if (o_ptr->held_m_idx)
                        {
                                monster_type *m_ptr;
@@ -468,12 +463,9 @@ void wipe_o_list(void)
                        }
                }
 
-               /* Monster */
                if (o_ptr->held_m_idx)
                {
                        monster_type *m_ptr;
-
-                       /* Monster */
                        m_ptr = &current_floor_ptr->m_list[o_ptr->held_m_idx];
 
                        /* Hack -- see above */
index 49be8f6..e554742 100644 (file)
@@ -1426,7 +1426,6 @@ void fill_treasure(POSITION x1, POSITION x2, POSITION y1, POSITION y2, int diffi
                                }
                                else if (value < 10)
                                {
-                                       /* Monster */
                                        current_floor_ptr->monster_level = current_floor_ptr->base_level + 9;
                                        place_monster(y, x, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP));
                                        current_floor_ptr->monster_level = current_floor_ptr->base_level;
index d90cd09..88221d4 100644 (file)
@@ -169,7 +169,6 @@ void display_snipe_list(void)
        put_str(_("名前", "Name"), y, x + 5);
        put_str(_("Lv   MP", "Lv Mana"), y, x + 35);
 
-       /* Dump the spells */
        for (i = 0; i < MAX_SNIPE_POWERS; i++)
        {
                /* Access the available spell */
@@ -177,7 +176,6 @@ void display_snipe_list(void)
                if (spell.min_lev > plev) continue;
                if (spell.mana_cost > (int)p_ptr->concent) continue;
 
-               /* Dump the spell */
                sprintf(psi_desc, "  %c) %-30s%2d %4d",
                        I2A(i), spell.name, spell.min_lev, spell.mana_cost);