{
POSITION y, x;
POSITION tmp_row, tmp_col;
- DIRECTION row_dir, col_dir;
+ POSITION row_dir, col_dir;
POSITION start_row, start_col;
int main_loop_count = 0;
break;
}
-
if (dummy >= SAFE_MAX_ATTEMPTS && cheat_room)
{
msg_print(_("警告!地下室のアイテムを配置できません!", "Warning! Could not place vault object!"));
}
-
/* Require "clean" floor space */
c_ptr = &cave[j][k];
if (!is_floor_grid(c_ptr) || c_ptr->o_idx) continue;
- /* Place an item */
if (randint0(100) < 75)
{
place_object(j, k, 0L);
}
-
- /* Place gold */
else
{
place_gold(j, k);
* @param x2 終点X座標
* @return なし
*/
-void correct_dir(int *rdir, int *cdir, POSITION y1, POSITION x1, POSITION y2, POSITION x2)
+void correct_dir(POSITION *rdir, POSITION *cdir, POSITION y1, POSITION x1, POSITION y2, POSITION x2)
{
/* Extract vertical and horizontal directions */
*rdir = (y1 == y2) ? 0 : (y1 < y2) ? 1 : -1;
* @param cdir X方向に取るべきベクトル値を返す参照ポインタ
* @return なし
*/
-void rand_dir(int *rdir, int *cdir)
+void rand_dir(POSITION *rdir, POSITION *cdir)
{
/* Pick a random direction */
int i = randint0(4);
extern void vault_trap_aux(POSITION y, POSITION x, POSITION yd, POSITION xd);
extern void vault_traps(POSITION y, POSITION x, POSITION yd, POSITION xd, int num);
-extern void correct_dir(int *rdir, int *cdir, POSITION y1, POSITION x1, POSITION y2, POSITION x2);
+extern void correct_dir(POSITION *rdir, POSITION *cdir, POSITION y1, POSITION x1, POSITION y2, POSITION x2);
-extern void rand_dir(int *rdir, int *cdir);
+extern void rand_dir(POSITION *rdir, POSITION *cdir);
extern bool get_is_floor(POSITION x, POSITION y);
extern void set_floor(POSITION x, POSITION y);
static bool get_item_allow(INVENTORY_IDX item)
{
cptr s;
-
object_type *o_ptr;
-
if (!command_cmd) return TRUE; /* command_cmd is no longer effective */
/* Inventory */
{
/* Display rough information about items */
#ifdef JP
- sprintf(out_val, "%s %d個のアイテム%s%s ['x'で一覧, %s]",
- s1, (int)floor_num, s2, s3, info);
+ sprintf(out_val, "%s %d個のアイテム%s%s ['x'で一覧, %s]", s1, (int)floor_num, s2, s3, info);
#else
- sprintf(out_val, "%s%s%sa pile of %d items [x,%s]",
- s1, s2, s3, (int)floor_num, info);
+ sprintf(out_val, "%s%s%sa pile of %d items [x,%s]", s1, s2, s3, (int)floor_num, info);
#endif
prt(out_val, 0, 0);
/* Prompt */
#ifdef JP
- sprintf(out_val, "%s %d個のアイテム%s%s [Enterで次へ, %s]",
- s1, (int)floor_num, s2, s3, info);
+ sprintf(out_val, "%s %d個のアイテム%s%s [Enterで次へ, %s]", s1, (int)floor_num, s2, s3, info);
#else
- sprintf(out_val, "%s%s%sa pile of %d items [Enter,%s]",
- s1, s2, s3, (int)floor_num, info);
+ sprintf(out_val, "%s%s%sa pile of %d items [Enter,%s]", s1, s2, s3, (int)floor_num, info);
#endif
prt(out_val, 0, 0);
-
- /* Wait */
query = inkey();
screen_load();