OSDN Git Service

[Refactor] #39076 冗長なコメントを削除.
authordeskull <deskull@users.sourceforge.jp>
Thu, 1 Aug 2019 14:40:05 +0000 (23:40 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Thu, 1 Aug 2019 14:40:05 +0000 (23:40 +0900)
src/cmd-activate.c
src/cmd-dump.c
src/cmd-pet.c
src/cmd-spell.c
src/monster-process.c
src/monster-status.c

index ff06281..1780d7c 100644 (file)
@@ -1583,7 +1583,6 @@ bool activate_artifact(player_type *user_ptr, object_type *o_ptr)
                /* Process the monsters (backwards) */
                for (i = current_floor_ptr->m_max - 1; i >= 1; i--)
                {
-                       /* Access the monster */
                        m_ptr = &current_floor_ptr->m_list[i];
 
                        /* Ignore "dead" monsters */
index 466d862..d0022eb 100644 (file)
@@ -4635,7 +4635,6 @@ static void do_cmd_knowledge_pets(void)
        /* Process the monsters (backwards) */
        for (i = current_floor_ptr->m_max - 1; i >= 1; i--)
        {
-               /* Access the monster */
                m_ptr = &current_floor_ptr->m_list[i];
 
                /* Ignore "dead" monsters */
index 1c1c94f..b99f37d 100644 (file)
@@ -168,7 +168,6 @@ void do_cmd_pet_dismiss(void)
                GAME_TEXT friend_name[MAX_NLEN];
                bool kakunin;
 
-               /* Access the monster */
                pet_ctr = who[i];
                m_ptr = &current_floor_ptr->m_list[pet_ctr];
 
@@ -902,7 +901,6 @@ void do_cmd_pet(void)
                        p_ptr->pet_extra_flags &= ~(PF_PICKUP_ITEMS);
                        for (pet_ctr = current_floor_ptr->m_max - 1; pet_ctr >= 1; pet_ctr--)
                        {
-                               /* Access the monster */
                                m_ptr = &current_floor_ptr->m_list[pet_ctr];
 
                                if (is_pet(m_ptr))
@@ -976,8 +974,9 @@ void do_cmd_pet(void)
 */
 bool rakuba(HIT_POINT dam, bool force)
 {
-       int i, y, x, oy, ox;
-       int sn = 0, sy = 0, sx = 0;
+       DIRECTION i;
+       POSITION y, x, oy, ox, sy = 0, sx = 0;
+       int sn = 0;
        GAME_TEXT m_name[MAX_NLEN];
        monster_type *m_ptr = &current_floor_ptr->m_list[p_ptr->riding];
        monster_race *r_ptr = &r_info[m_ptr->r_idx];
index 68073f6..20dc4e0 100644 (file)
@@ -800,11 +800,8 @@ void do_cmd_study(void)
 
        /* Spells of realm2 will have an increment of +32 */
        SPELL_IDX spell = -1;
-
        concptr p = spell_category_name(mp_ptr->spell_book);
-
        object_type *o_ptr;
-
        concptr q, s;
 
        if (!p_ptr->realm1)
@@ -813,12 +810,7 @@ void do_cmd_study(void)
                return;
        }
 
-       if (p_ptr->blind || no_lite())
-       {
-               msg_print(_("目が見えない!", "You cannot see!"));
-               return;
-       }
-
+       if (cmd_limit_blind(p_ptr)) return;
        if (cmd_limit_confused(p_ptr)) return;
 
        if (!(p_ptr->new_spells))
@@ -1066,7 +1058,6 @@ void do_cmd_cast(void)
                return;
        }
 
-       /* Require lite */
        if (p_ptr->blind || no_lite())
        {
                if (p_ptr->pclass == CLASS_FORCETRAINER) confirm_use_force(FALSE);
@@ -1303,10 +1294,7 @@ void do_cmd_cast(void)
                                p_ptr->spell_worked2 |= (1L << spell);
                        }
 
-                       /* Gain experience */
                        gain_exp(p_ptr, e * s_ptr->slevel);
-
-                       /* Redraw object recall */
                        p_ptr->window |= (PW_OBJECT);
 
                        switch (realm)
index 6a2e92f..468bf59 100644 (file)
@@ -2522,7 +2522,6 @@ void process_monsters(void)
        /* Process the monsters (backwards) */
        for (i = current_floor_ptr->m_max - 1; i >= 1; i--)
        {
-               /* Access the monster */
                m_ptr = &current_floor_ptr->m_list[i];
                r_ptr = &r_info[m_ptr->r_idx];
 
index 01a678c..be8c671 100644 (file)
@@ -175,7 +175,6 @@ static void get_exp_from_mon(HIT_POINT dam, monster_type *m_ptr)
        /* Finally multiply base experience point of the monster */
        s64b_mul(&new_exp, &new_exp_frac, 0, r_ptr->mexp);
 
-       /* Gain experience */
        gain_exp_64(p_ptr, new_exp, new_exp_frac);
 }
 
@@ -241,7 +240,6 @@ void mproc_init(void)
        /* Process the monsters (backwards) */
        for (i = current_floor_ptr->m_max - 1; i >= 1; i--)
        {
-               /* Access the monster */
                m_ptr = &current_floor_ptr->m_list[i];
 
                /* Ignore "dead" monsters */
@@ -765,7 +763,6 @@ void process_monsters_mtimed(int mtimed_idx)
        /* Process the monsters (backwards) */
        for (i = current_floor_ptr->mproc_max[mtimed_idx] - 1; i >= 0; i--)
        {
-               /* Access the monster */
                process_monsters_mtimed_aux(cur_mproc_list[i], mtimed_idx);
        }
 }