OSDN Git Service

[Refactor] #37353 mon_take_hit() のコメントアウト済落馬処理を削除。 / Delete comment outed process...
[hengband/hengband.git] / src / mspells3.c
index e2cc270..d39543a 100644 (file)
@@ -230,8 +230,6 @@ static int get_learned_power(SPELL_IDX *sn)
        /* No redraw yet */
        redraw = FALSE;
 
-#ifdef ALLOW_REPEAT /* TNB */
-
        /* Get the spell, if available */
        
        if (repeat_pull(&code))
@@ -241,8 +239,6 @@ static int get_learned_power(SPELL_IDX *sn)
        }
        *sn = (SPELL_IDX)code;
 
-#endif /* ALLOW_REPEAT -- TNB */
-
        if (use_menu)
        {
                screen_save();
@@ -578,7 +574,6 @@ static int get_learned_power(SPELL_IDX *sn)
        /* Show choices */
        p_ptr->window |= (PW_SPELL);
 
-       /* Window stuff */
        window_stuff();
 
        /* Abort if needed */
@@ -587,12 +582,8 @@ static int get_learned_power(SPELL_IDX *sn)
        /* Save the choice */
        (*sn) = spellnum[i];
 
-#ifdef ALLOW_REPEAT /* TNB */
-
        repeat_push((COMMAND_CODE)spellnum[i]);
 
-#endif /* ALLOW_REPEAT -- TNB */
-
        /* Success */
        return (TRUE);
 }
@@ -1080,13 +1071,11 @@ static bool cast_learned_spell(int spell, bool success)
                /* Hack */
                p_ptr->energy_need -= 1000 + (100 + randint1(200)+200)*TURNS_PER_TICK/10;
 
-               /* Redraw map */
                p_ptr->redraw |= (PR_MAP);
 
                /* Update monsters */
                p_ptr->update |= (PU_MONSTERS);
 
-               /* Window stuff */
                p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
 
                handle_stuff();
@@ -1569,7 +1558,6 @@ bool do_cmd_cast_learned(void)
                p_ptr->csp = 0;
                p_ptr->csp_frac = 0;
 
-               /* Message */
                msg_print(_("精神を集中しすぎて気を失ってしまった!", "You faint from the effort!"));
 
                /* Hack -- Bypass free action */
@@ -1582,7 +1570,6 @@ bool do_cmd_cast_learned(void)
                {
                        bool perm = (randint0(100) < 25);
 
-                       /* Message */
                        msg_print(_("体を悪くしてしまった!", "You have damaged your health!"));
 
                        /* Reduce constitution */
@@ -1590,10 +1577,8 @@ bool do_cmd_cast_learned(void)
                }
        }
 
-       /* Take a turn */
        p_ptr->energy_use = 100;
 
-       /* Window stuff */
        p_ptr->redraw |= (PR_MANA);
        p_ptr->window |= (PW_PLAYER);
        p_ptr->window |= (PW_SPELL);