OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
authordeskull <deskull@users.sourceforge.jp>
Thu, 14 Mar 2019 11:02:01 +0000 (20:02 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Thu, 14 Mar 2019 11:02:01 +0000 (20:02 +0900)
src/cmd4.c
src/dungeon.c
src/object1.c
src/object2.c

index e0f7246..7d4956d 100644 (file)
@@ -4470,7 +4470,6 @@ static FEAT_IDX collect_features(int grp_cur, FEAT_IDX *feat_idx, BIT_FLAGS8 mod
        /* Check every feature */
        for (i = 0; i < max_f_idx; i++)
        {
-               /* Access the index */
                feature_type *f_ptr = &f_info[i];
 
                /* Skip empty index */
@@ -7100,13 +7099,8 @@ static void display_feature_list(int col, int row, int per_page, FEAT_IDX *feat_
        for (i = 0; i < per_page && (feat_idx[feat_top + i] >= 0); i++)
        {
                TERM_COLOR attr;
-
-               /* Get the index */
                FEAT_IDX f_idx = feat_idx[feat_top + i];
-
-               /* Access the index */
                feature_type *f_ptr = &f_info[f_idx];
-
                int row_i = row + i;
 
                /* Choose a color */
index 7f1f12d..ad04226 100644 (file)
@@ -3435,7 +3435,6 @@ static void process_world(void)
                                /* Check every feature */
                                for (i = 1; i < max_f_idx; i++)
                                {
-                                       /* Access the index */
                                        feature_type *f_ptr = &f_info[i];
 
                                        /* Skip empty index */
index f90a0d0..8214d61 100644 (file)
@@ -2189,9 +2189,7 @@ COMMAND_CODE show_inven(int target_item, BIT_FLAGS mode)
        /* Output each entry */
        for (j = 0; j < k; j++)
        {
-               /* Get the index */
                i = out_index[j];
-
                o_ptr = &inventory[i];
 
                /* Clear the line */
@@ -2361,9 +2359,7 @@ COMMAND_CODE show_equip(int target_item, BIT_FLAGS mode)
        /* Output each entry */
        for (j = 0; j < k; j++)
        {
-               /* Get the index */
                i = out_index[j];
-
                o_ptr = &inventory[i];
 
                /* Clear the line */
@@ -3590,9 +3586,7 @@ COMMAND_CODE show_floor(int target_item, POSITION y, POSITION x, TERM_LEN *min_w
        /* Output each entry */
        for (j = 0; j < k; j++)
        {
-               /* Get the index */
                m = floor_list[out_index[j]];
-
                o_ptr = &current_floor_ptr->o_list[m];
 
                /* Clear the line */
index 6fd2efd..df0538b 100644 (file)
@@ -603,7 +603,6 @@ OBJECT_IDX get_obj_num(DEPTH level)
                /* Default */
                table[i].prob3 = 0;
 
-               /* Access the index */
                k_idx = table[i].index;
 
                /* Access the actual kind */