OSDN Git Service

[Refactor] #39076 座標に関するコメント一部削除。
authordeskull <deskull@users.sourceforge.jp>
Wed, 3 Apr 2019 15:08:57 +0000 (00:08 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Wed, 3 Apr 2019 15:09:40 +0000 (00:09 +0900)
src/monster2.c
src/object2.c
src/z-term.c

index 33ff4ae..f5837db 100644 (file)
@@ -1810,8 +1810,6 @@ void update_monster(MONSTER_IDX m_idx, bool full)
        bool do_disturb = disturb_move;
 
        POSITION d;
-
-       /* Current location */
        POSITION fy = m_ptr->fy;
        POSITION fx = m_ptr->fx;
 
@@ -1859,11 +1857,9 @@ void update_monster(MONSTER_IDX m_idx, bool full)
                d = m_ptr->cdis;
        }
 
-
        /* Detected */
        if (m_ptr->mflag2 & (MFLAG2_MARK)) flag = TRUE;
 
-
        /* Nearby */
        if (d <= (in_darkness ? MAX_SIGHT / 2 : MAX_SIGHT))
        {
@@ -2096,7 +2092,6 @@ void update_monster(MONSTER_IDX m_idx, bool full)
                                        r_ptr->r_sights++;
                        }
 
-                       /* Eldritch Horror */
                        if (r_info[m_ptr->ap_r_idx].flags2 & RF2_ELDRITCH_HORROR)
                        {
                                sanity_blast(m_ptr, FALSE);
@@ -2408,7 +2403,7 @@ static MONRACE_IDX initial_r_appearance(MONRACE_IDX r_idx)
 {
        int attempts = 1000;
        MONRACE_IDX ap_r_idx;
-       DEPTH min = MIN(current_floor_ptr->base_level-5, 50);
+       DEPTH min = MIN(current_floor_ptr->base_level - 5, 50);
 
        if (p_ptr->pseikaku == SEIKAKU_CHARGEMAN)
        {
@@ -2491,7 +2486,6 @@ static bool place_monster_one(MONSTER_IDX who, POSITION y, POSITION x, MONRACE_I
        /* DO NOT PLACE A MONSTER IN THE SMALL SCALE WILDERNESS !!! */
        if (p_ptr->wild_mode) return FALSE;
 
-       /* Verify location */
        if (!in_bounds(y, x)) return (FALSE);
        if (!r_idx) return (FALSE);
        if (!r_ptr->name) return (FALSE);
index 13c42c7..4c1672c 100644 (file)
@@ -4706,7 +4706,6 @@ OBJECT_IDX drop_near(object_type *j_ptr, PERCENTAGE chance, POSITION y, POSITION
                ty = rand_spread(by, 1);
                tx = rand_spread(bx, 1);
 
-               /* Verify location */
                if (!in_bounds(ty, tx)) continue;
 
                /* Bounce to that location */
index 3d4a875..1baf28a 100644 (file)
@@ -1832,7 +1832,6 @@ errr Term_draw(TERM_LEN x, TERM_LEN y, TERM_COLOR a, char c)
        int w = Term->wid;
        int h = Term->hgt;
 
-       /* Verify location */
        if ((x < 0) || (x >= w)) return (-1);
        if ((y < 0) || (y >= h)) return (-1);
 
@@ -2349,7 +2348,6 @@ errr Term_what(TERM_LEN x, TERM_LEN y, TERM_COLOR *a, char *c)
        TERM_LEN w = Term->wid;
        TERM_LEN h = Term->hgt;
 
-       /* Verify location */
        if ((x < 0) || (x >= w)) return (-1);
        if ((y < 0) || (y >= h)) return (-1);