OSDN Git Service

[Refactor] #37353 型の置換。 / Type replacement.
[hengband/hengband.git] / src / mspells3.c
index 450b5cd..93f6912 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);
 }
@@ -1086,7 +1077,6 @@ static bool cast_learned_spell(int spell, bool success)
                /* Update monsters */
                p_ptr->update |= (PU_MONSTERS);
 
-               /* Window stuff */
                p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
 
                handle_stuff();
@@ -1590,7 +1580,6 @@ bool do_cmd_cast_learned(void)
 
        p_ptr->energy_use = 100;
 
-       /* Window stuff */
        p_ptr->redraw |= (PR_MANA);
        p_ptr->window |= (PW_PLAYER);
        p_ptr->window |= (PW_SPELL);