OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
authordeskull <deskull@users.sourceforge.jp>
Tue, 19 Mar 2019 13:47:01 +0000 (22:47 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Tue, 19 Mar 2019 13:52:58 +0000 (22:52 +0900)
src/grid.c
src/view-mainwindow.c
src/xtra2.c

index dd3ade0..ea41efe 100644 (file)
@@ -1933,7 +1933,6 @@ void map_info(POSITION y, POSITION x, TERM_COLOR *ap, SYMBOL_CODE *cp, TERM_COLO
        {
                if (one_in_(256))
                {
-                       /* Hallucinate */
                        image_random(ap, cp);
                }
        }
@@ -2009,7 +2008,6 @@ void map_info(POSITION y, POSITION x, TERM_COLOR *ap, SYMBOL_CODE *cp, TERM_COLO
                                }
                                else
                                {
-                                       /* Hallucinatory monster */
                                        image_monster(ap, cp);
                                }
                        }
@@ -2304,8 +2302,6 @@ void display_dungeon(void)
                {
                        if (in_bounds2(y, x))
                        {
-
-                               /* Examine the grid */
                                map_info(y, x, &a, &c, &ta, &tc);
 
                                /* Hack -- fake monochrome */
@@ -2352,11 +2348,9 @@ void lite_spot(POSITION y, POSITION x)
        {
                TERM_COLOR a;
                SYMBOL_CODE c;
-
                TERM_COLOR ta;
                SYMBOL_CODE tc;
 
-               /* Examine the grid */
                map_info(y, x, &a, &c, &ta, &tc);
 
                /* Hack -- fake monochrome */
index 9930e4a..4b45cfa 100644 (file)
@@ -2513,7 +2513,6 @@ bool change_panel(POSITION dy, POSITION dx)
                panel_row_min = y;
                panel_col_min = x;
 
-               /* Recalculate the boundaries */
                panel_bounds_center();
 
                p_ptr->update |= (PU_MONSTERS);
index a8cc18c..bfa1166 100644 (file)
@@ -167,7 +167,6 @@ void verify_panel(void)
        /* Hack -- optional disturb on "panel change" */
        if (disturb_panel && !center_player) disturb(FALSE, FALSE);
 
-       /* Recalculate the boundaries */
        panel_bounds_center();
 
        p_ptr->update |= (PU_MONSTERS);
@@ -176,11 +175,8 @@ void verify_panel(void)
 }
 
 
-
-
 /*** Targeting Code ***/
 
-
 /*
  * Determine is a monster makes a reasonable target
  *
@@ -280,7 +276,6 @@ static POSITION_IDX target_pick(POSITION y1, POSITION x1, POSITION dy, POSITION
                if (dx && (x3 * dx <= 0)) continue;
                if (dy && (y3 * dy <= 0)) continue;
 
-               /* Absolute distance */
                x4 = ABS(x3);
                y4 = ABS(y3);
 
@@ -292,11 +287,7 @@ static POSITION_IDX target_pick(POSITION y1, POSITION x1, POSITION dy, POSITION
                v = ((x4 > y4) ? (x4 + x4 + y4) : (y4 + y4 + x4));
 
                /* Penalize location */
-
-               /* Track best */
                if ((b_i >= 0) && (v >= b_v)) continue;
-
-               /* Track best */
                b_i = i; b_v = v;
        }
        return (b_i);
@@ -311,16 +302,13 @@ static bool target_set_accept(POSITION y, POSITION x)
        grid_type *g_ptr;
        OBJECT_IDX this_o_idx, next_o_idx = 0;
 
-       /* Bounds */
        if (!(in_bounds(y, x))) return (FALSE);
 
        /* Player grid is always interesting */
        if (player_bold(y, x)) return (TRUE);
 
-       /* Handle hallucination */
        if (p_ptr->image) return (FALSE);
 
-       /* Examine the grid */
        g_ptr = &current_floor_ptr->grid_array[y][x];
 
        /* Visible monsters */
@@ -1942,13 +1930,11 @@ static bool tgt_pt_accept(POSITION y, POSITION x)
 {
        grid_type *g_ptr;
 
-       /* Bounds */
        if (!(in_bounds(y, x))) return (FALSE);
 
        /* Player grid is always interesting */
        if ((y == p_ptr->y) && (x == p_ptr->x)) return (TRUE);
 
-       /* Handle hallucination */
        if (p_ptr->image) return (FALSE);
 
        /* Examine the grid */