*/
bool cmd_limit_cast(player_type *creature_ptr)
{
- if (dun_level && (d_info[dungeon_type].flags1 & DF1_NO_MAGIC))
+ if (dun_level && (d_info[dungeon_idx].flags1 & DF1_NO_MAGIC))
{
msg_print(_("ダンジョンが魔法を吸収した!", "The dungeon absorbs all attempted magic!"));
msg_print(NULL);
}
/* Get out from current dungeon */
- if (dun_level - up_num < d_info[dungeon_type].mindepth)
+ if (dun_level - up_num < d_info[dungeon_idx].mindepth)
up_num = dun_level;
}
if (record_stair) do_cmd_write_nikki(NIKKI_STAIR, 0-up_num, _("階段を上った", "climbed up the stairs to"));
/* Save old player position */
p_ptr->oldpx = p_ptr->x;
p_ptr->oldpy = p_ptr->y;
- dungeon_type = target_dungeon;
+ dungeon_idx = target_dungeon;
/*
* Clear all saved floors
{
/* Enter the dungeon just now */
p_ptr->enter_dungeon = TRUE;
- down_num = d_info[dungeon_type].mindepth;
+ down_num = d_info[dungeon_idx].mindepth;
}
if (record_stair)
/* Success */
if (target_dungeon)
{
- msg_format(_("%sへ入った。", "You entered %s."), d_text + d_info[dungeon_type].text);
+ msg_format(_("%sへ入った。", "You entered %s."), d_text + d_info[dungeon_idx].text);
}
else
{