const magic_type *s_ptr;
char out_val[160];
cptr p;
+ COMMAND_CODE code;
#ifdef JP
char jverb_buf[128];
#endif
#ifdef ALLOW_REPEAT /* TNB */
/* Get the spell, if available */
- if (repeat_pull(sn))
+ if (repeat_pull(&code))
{
+ *sn = (SPELL_IDX)code;
/* Verify the spell */
if (spell_okay(*sn, learned, FALSE, use_realm))
{
#ifdef ALLOW_REPEAT /* TNB */
- repeat_push(*sn);
+ repeat_push((COMMAND_CODE)spell);
#endif /* ALLOW_REPEAT -- TNB */
*/
static void confirm_use_force(bool browse_only)
{
- SPELL_IDX item;
+ INVENTORY_IDX item;
char which;
+ COMMAND_CODE code;
#ifdef ALLOW_REPEAT
/* Get the item index */
- if (repeat_pull(&item) && (item == INVEN_FORCE))
+ if (repeat_pull(&code) && (code == INVEN_FORCE))
{
+ item = (INVENTORY_IDX)code;
browse_only ? do_cmd_mind_browse() : do_cmd_mind();
return;
}
static void start_singing(SPELL_IDX spell, MAGIC_NUM1 song)
{
/* Remember the song index */
- SINGING_SONG_EFFECT(p_ptr) = (MAGIC_NUM2)song;
+ SINGING_SONG_EFFECT(p_ptr) = (MAGIC_NUM1)song;
/* Remember the index of the spell which activated the song */
- SINGING_SONG_ID(p_ptr) = (SPELL_IDX)spell;
+ SINGING_SONG_ID(p_ptr) = (MAGIC_NUM2)spell;
/* Now the player is singing */
char out_val[160];
SPELL_IDX sentaku[32];
cptr p = _("必殺剣", "special attack");
-
+ COMMAND_CODE code;
magic_type spell;
bool flag, redraw;
int menu_line = (use_menu ? 1 : 0);
#ifdef ALLOW_REPEAT /* TNB */
/* Get the spell, if available */
- if (repeat_pull(sn))
+ if (repeat_pull(&code))
{
+ *sn = (SPELL_IDX)code;
/* Verify the spell */
if (technic_info[TECHNIC_HISSATSU][*sn].slevel <= plev)
{
#ifdef ALLOW_REPEAT /* TNB */
- repeat_push(*sn);
+ repeat_push((COMMAND_CODE)j);
#endif /* ALLOW_REPEAT -- TNB */
char out_val[160];
char comment[80];
cptr p;
-
+ COMMAND_CODE code;
mind_type spell;
const mind_power *mind_ptr;
bool flag, redraw;
#ifdef ALLOW_REPEAT /* TNB */
/* Get the spell, if available */
- if (repeat_pull(sn))
+
+ if (repeat_pull(&code))
{
+ *sn = (SPELL_IDX)code;
/* Hack -- If requested INVEN_FORCE(1111), pull again */
- if (*sn == INVEN_FORCE) repeat_pull(sn);
+ if (*sn == INVEN_FORCE) repeat_pull(&code);
+ *sn = (SPELL_IDX)code;
/* Verify the spell */
if (mind_ptr->info[*sn].min_lev <= plev)
#ifdef ALLOW_REPEAT /* TNB */
- repeat_push(*sn);
+ repeat_push((COMMAND_CODE)i);
#endif /* ALLOW_REPEAT -- TNB */
char comment[80];
s32b f4 = 0, f5 = 0, f6 = 0;
cptr p = _("魔法", "magic");
-
+ COMMAND_CODE code;
monster_power spell;
bool flag, redraw;
int menu_line = (use_menu ? 1 : 0);
#ifdef ALLOW_REPEAT /* TNB */
/* Get the spell, if available */
- if (repeat_pull(sn))
+
+ if (repeat_pull(&code))
{
/* Success */
return (TRUE);
}
+ *sn = (SPELL_IDX)code;
#endif /* ALLOW_REPEAT -- TNB */
#ifdef ALLOW_REPEAT /* TNB */
- repeat_push(*sn);
+ repeat_push((COMMAND_CODE)spellnum[i]);
#endif /* ALLOW_REPEAT -- TNB */
{
int i;
- char cmd;
+ s16b cmd;
int mode;
cptr act;