OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
authordeskull <deskull@users.sourceforge.jp>
Sun, 17 Mar 2019 05:53:55 +0000 (14:53 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sun, 17 Mar 2019 05:53:55 +0000 (14:53 +0900)
src/dungeon.c
src/grid.c
src/spells2.c
src/wizard2.c

index 8dc901a..3f3f59c 100644 (file)
@@ -870,8 +870,6 @@ static void regen_monsters(void)
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
                monster_race *r_ptr = &r_info[m_ptr->r_idx];
 
-
-               /* Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                /* Allow regeneration (if needed) */
@@ -2419,8 +2417,6 @@ static void process_world_aux_mutation(void)
                {
                        monster_type *m_ptr = &current_floor_ptr->m_list[monster];
                        monster_race *r_ptr = &r_info[m_ptr->r_idx];
-
-                       /* Paranoia -- Skip dead monsters */
                        if (!monster_is_valid(m_ptr)) continue;
 
                        if (r_ptr->level >= p_ptr->lev)
@@ -3082,8 +3078,6 @@ static byte get_dungeon_feeling(void)
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
                monster_race *r_ptr;
                int delta = 0;
-
-               /* Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                /* Ignore pet */
@@ -4993,8 +4987,6 @@ static void process_player(void)
                                        monster_race *r_ptr;
 
                                        m_ptr = &current_floor_ptr->m_list[m_idx];
-
-                                       /* Skip dead monsters */
                                        if (!monster_is_valid(m_ptr)) continue;
 
                                        /* Skip unseen monsters */
@@ -5027,8 +5019,6 @@ static void process_player(void)
                                {
                                        monster_type *m_ptr;
                                        m_ptr = &current_floor_ptr->m_list[m_idx];
-
-                                       /* Skip dead monsters */
                                        if (!monster_is_valid(m_ptr)) continue;
 
                                        /* Nice monsters get mean */
index c262c58..ffbc76b 100644 (file)
@@ -3735,8 +3735,6 @@ void update_mon_lite(void)
                {
                        m_ptr = &current_floor_ptr->m_list[i];
                        r_ptr = &r_info[m_ptr->r_idx];
-
-                       /* Skip dead monsters */
                        if (!monster_is_valid(m_ptr)) continue;
 
                        /* Is it too far away? */
index 4eb42be..a4aac46 100644 (file)
@@ -472,8 +472,6 @@ bool detect_monsters_evil(POSITION range)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
                monster_race *r_ptr = &r_info[m_ptr->r_idx];
-
-               /* Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                y = m_ptr->fy;
@@ -528,8 +526,6 @@ bool detect_monsters_nonliving(POSITION range)
        for (i = 1; i < m_max; i++)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
-
-               /* Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                y = m_ptr->fy;
@@ -579,8 +575,6 @@ bool detect_monsters_mind(POSITION range)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
                monster_race *r_ptr = &r_info[m_ptr->r_idx];
-
-               /* Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                y = m_ptr->fy;
@@ -632,8 +626,6 @@ bool detect_monsters_string(POSITION range, concptr Match)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
                monster_race *r_ptr = &r_info[m_ptr->r_idx];
-
-               /* Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                y = m_ptr->fy;
@@ -687,8 +679,6 @@ bool detect_monsters_xxx(POSITION range, u32b match_flag)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
                monster_race *r_ptr = &r_info[m_ptr->r_idx];
-
-               /* Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                y = m_ptr->fy;
@@ -789,8 +779,6 @@ bool project_all_los(EFFECT_ID typ, HIT_POINT dam)
        for (i = 1; i < m_max; i++)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
-
-               /* Paranoia -- Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                y = m_ptr->fy;
@@ -979,8 +967,6 @@ void aggravate_monsters(MONSTER_IDX who)
        for (i = 1; i < m_max; i++)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
-
-               /* Paranoia -- Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                /* Skip aggravating monster (or player) */
@@ -1130,8 +1116,6 @@ bool symbol_genocide(int power, bool player_cast)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
                monster_race *r_ptr = &r_info[m_ptr->r_idx];
-
-               /* Paranoia -- Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                /* Skip "wrong" monsters */
@@ -1171,8 +1155,6 @@ bool mass_genocide(int power, bool player_cast)
        for (i = 1; i < m_max; i++)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
-
-               /* Paranoia -- Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                /* Skip distant monsters */
@@ -1214,8 +1196,6 @@ bool mass_genocide_undead(int power, bool player_cast)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
                monster_race *r_ptr = &r_info[m_ptr->r_idx];
-
-               /* Paranoia -- Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                if (!(r_ptr->flags3 & RF3_UNDEAD)) continue;
@@ -1260,8 +1240,6 @@ bool probing(void)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
                monster_race *r_ptr = &r_info[m_ptr->r_idx];
-
-               /* Paranoia -- Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                /* Require line of sight */
index 1313f4c..feb72ae 100644 (file)
@@ -1474,8 +1474,6 @@ static void do_cmd_wiz_zap(void)
        for (i = 1; i < m_max; i++)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
-
-               /* Paranoia -- Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                /* Skip the mount */
@@ -1511,8 +1509,6 @@ static void do_cmd_wiz_zap_all(void)
        for (i = 1; i < m_max; i++)
        {
                monster_type *m_ptr = &current_floor_ptr->m_list[i];
-
-               /* Paranoia -- Skip dead monsters */
                if (!monster_is_valid(m_ptr)) continue;
 
                /* Skip the mount */