-#include "angband.h"
+#include "angband.h"
#include "dungeon.h"
+#include "world.h"
/*
* The dungeon arrays
/*
* Maximum number of dungeon in d_info.txt
*/
-DUNGEON_IDX max_d_idx;
DEPTH *max_dlv;
}
/* Allocate the "dun" array */
- C_MAKE(dun, max_d_idx, DUNGEON_IDX);
+ C_MAKE(dun, current_world_ptr->max_d_idx, DUNGEON_IDX);
screen_save();
- for (i = 1; i < max_d_idx; i++)
+ for (i = 1; i < current_world_ptr->max_d_idx; i++)
{
char buf[80];
bool seiha = FALSE;
}
prt(format(_("どのダンジョン%sしますか:", "Which dungeon do you %s?: "), note), 0, 0);
- while (1)
+ while (TRUE)
{
i = inkey();
if ((i == ESCAPE) || !num)
{
/* Free the "dun" array */
- C_KILL(dun, max_d_idx, DUNGEON_IDX);
+ C_KILL(dun, current_world_ptr->max_d_idx, DUNGEON_IDX);
screen_load();
return 0;
screen_load();
/* Free the "dun" array */
- C_KILL(dun, max_d_idx, DUNGEON_IDX);
+ C_KILL(dun, current_world_ptr->max_d_idx, DUNGEON_IDX);
return select_dungeon;
}