OSDN Git Service

[Refactor] #37353 型の置換。 / Type replacement.
[hengband/hengband.git] / src / floor-save.c
index 1b306ca..b34ec38 100644 (file)
@@ -61,19 +61,12 @@ void init_saved_floors(bool force)
                {
                        if (!force)
                        {
-#ifdef JP
-                               msg_print("エラー:古いテンポラリ・ファイルが残っています。");
-                               msg_print("変愚蛮怒を二重に起動していないか確認してください。");
-                               msg_print("過去に変愚蛮怒がクラッシュした場合は一時ファイルを");
-                               msg_print("強制的に削除して実行を続けられます。");
-                               if (!get_check("強制的に削除してもよろしいですか?")) quit("実行中止");
-#else
-                               msg_print("Error: There are old temporal files.");
-                               msg_print("Make sure you are not running two game processes simultaneously.");
-                               msg_print("If the temporal files are garbages of old crashed process, ");
-                               msg_print("you can delete it safely.");
-                               if (!get_check("Do you delete old temporal files? ")) quit("Aborted.");
-#endif
+                               msg_print(_("エラー:古いテンポラリ・ファイルが残っています。", "Error: There are old temporal files."));
+                               msg_print(_("変愚蛮怒を二重に起動していないか確認してください。", "Make sure you are not running two game processes simultaneously."));
+                               msg_print(_("過去に変愚蛮怒がクラッシュした場合は一時ファイルを", "If the temporal files are garbages of old crashed process, "));
+                               msg_print(_("強制的に削除して実行を続けられます。", "you can delete it safely."));
+                               if (!get_check(_("強制的に削除してもよろしいですか?", "Do you delete old temporal files? ")))
+                                       quit(_("実行中止", "Aborted."));
                                force = TRUE;
                        }
                }
@@ -169,7 +162,7 @@ void clear_saved_floor_files(void)
  * @param floor_id 保存フロアID
  * @return IDに対応する保存フロアのポインタ、ない場合はNULLを返す。
  */
-saved_floor_type *get_sf_ptr(s16b floor_id)
+saved_floor_type *get_sf_ptr(FLOOR_IDX floor_id)
 {
        int i;
 
@@ -478,7 +471,6 @@ static void preserve_pet(void)
                                msg_format(_("%sは消え去った!", "%^s disappears!"), m_name);
                        }
 
-                       /* Delete the monster */
                        delete_monster_idx(i);
                }
        }
@@ -682,8 +674,8 @@ static void get_out_monster(void)
 {
        int tries = 0;
        POSITION dis = 1;
-       int oy = p_ptr->y;
-       int ox = p_ptr->x;
+       POSITION oy = p_ptr->y;
+       POSITION ox = p_ptr->x;
        MONSTER_IDX m_idx = cave[oy][ox].m_idx;
 
        /* Nothing to do if no monster */
@@ -695,8 +687,8 @@ static void get_out_monster(void)
                monster_type *m_ptr;
 
                /* Pick a (possibly illegal) location */
-               int ny = rand_spread(oy, dis);
-               int nx = rand_spread(ox, dis);
+               POSITION ny = rand_spread(oy, dis);
+               POSITION nx = rand_spread(ox, dis);
 
                tries++;
 
@@ -857,7 +849,7 @@ void leave_floor(void)
        cave_type *c_ptr = NULL;
        feature_type *f_ptr;
        saved_floor_type *sf_ptr;
-       int quest_r_idx = 0;
+       MONRACE_IDX quest_r_idx = 0;
        DUNGEON_IDX i;
 
        /* Preserve pets and prepare to take these to next floor */