/*!
* @brief メッセージログを読み込む / Read the dungeon (old method)
+ * @param creature_ptr プレーヤーへの参照ポインタ
* @return なし
* @details
* The monsters/objects must be loaded in the same order
* that they were stored, since the actual indexes matter.
*/
-static errr rd_dungeon_old(floor_type *floor_ptr)
+static errr rd_dungeon_old(player_type *creature_ptr)
{
int i, y, x;
int ymax, xmax;
/* Header info */
rd_s16b(&tmp16s);
+ floor_type *floor_ptr = creature_ptr->current_floor_ptr;
floor_ptr->dun_level = (DEPTH)tmp16s;
- if (z_older_than(10, 3, 8)) p_ptr->dungeon_idx = DUNGEON_ANGBAND;
+ if (z_older_than(10, 3, 8)) creature_ptr->dungeon_idx = DUNGEON_ANGBAND;
else
{
rd_byte(&tmp8u);
- p_ptr->dungeon_idx = (IDX)tmp8u;
+ creature_ptr->dungeon_idx = (IDX)tmp8u;
}
/* Set the base level for old versions */
rd_s16b(&tmp16s);
floor_ptr->num_repro = (MONSTER_NUMBER)tmp16s;
rd_s16b(&tmp16s);
- p_ptr->y = (POSITION)tmp16s;
+ creature_ptr->y = (POSITION)tmp16s;
rd_s16b(&tmp16s);
- p_ptr->x = (POSITION)tmp16s;
- if (z_older_than(10, 3, 13) && !floor_ptr->dun_level && !floor_ptr->inside_arena) {p_ptr->y = 33;p_ptr->x = 131;}
+ creature_ptr->x = (POSITION)tmp16s;
+ if (z_older_than(10, 3, 13) && !floor_ptr->dun_level && !floor_ptr->inside_arena) { creature_ptr->y = 33; creature_ptr->x = 131;}
rd_s16b(&tmp16s);
floor_ptr->height = (POSITION)tmp16s;
rd_s16b(&tmp16s);
{
g_ptr->info &= ~CAVE_TRAP;
g_ptr->mimic = g_ptr->feat;
- g_ptr->feat = choose_random_trap(floor_ptr);
+ g_ptr->feat = choose_random_trap(creature_ptr);
}
/* Another hidden trap */
byte num;
int i;
- /* Initialize saved_floors array and temporal files */
+ /* Initialize saved_floors array and temporary files */
init_saved_floors(player_ptr, FALSE);
/* Older method */
if (h_older_than(1, 5, 0, 0))
{
- err = rd_dungeon_old(player_ptr->current_floor_ptr);
+ err = rd_dungeon_old(player_ptr);
/* Prepare floor_id of current floor */
if (player_ptr->dungeon_idx)
}
- /* Move saved floors data to temporal files */
+ /* Move saved floors data to temporary files */
for (i = 0; i < num; i++)
{
saved_floor_type *sf_ptr = &saved_floors[i];
/* Error? */
if (err) break;
- /* Re-save as temporal saved floor file */
- if (!save_floor(sf_ptr, SLF_SECOND)) err = 182;
+ /* Re-save as temporary saved floor file */
+ if (!save_floor(player_ptr, sf_ptr, SLF_SECOND)) err = 182;
/* Error? */
if (err) break;
}
- /* Finally load current floor data from temporal file */
+ /* Finally load current floor data from temporary file */
if (!err)
{
if (!load_floor(player_ptr, get_sf_ptr(player_ptr->floor_id), SLF_SECOND)) err = 183;
break;
case 182:
- note(_("テンポラリ・ファイルを作成できません!", "Failed to make temporal files!"));
+ note(_("テンポラリ・ファイルを作成できません!", "Failed to make temporary files!"));
break;
case 183:
x_check = 0L;
/* Set the version number to current version */
- /* Never load old temporal files */
+ /* Never load old temporary files */
current_world_ptr->h_ver_extra = H_VER_EXTRA;
current_world_ptr->h_ver_patch = H_VER_PATCH;
current_world_ptr->h_ver_minor = H_VER_MINOR;
/*!
- * @brief 一時保存フロア情報を読み込む / Attempt to load the temporally saved-floor data
+ * @brief 一時保存フロア情報を読み込む / Attempt to load the temporarily saved-floor data
* @param player_ptr プレーヤーへの参照ポインタ
* @param sf_ptr 保存フロア読み込み先
* @param mode オプション
byte old_kanji_code = kanji_code;
/*
- * Temporal files are always written in system depended kanji
+ * Temporary files are always written in system depended kanji
* code.
*/
#ifdef JP