OSDN Git Service

ascii_to_zenkakuの全角マイナス記号を適切なものに修正
[hengband/hengband.git] / src / load.c
index 5b76527..760524d 100644 (file)
@@ -1,4 +1,4 @@
-/* File: load.c */
+/* File: load.c */
 
 /*
  * Copyright (c) 1997 Ben Harrison, and others
@@ -249,10 +249,10 @@ static void rd_string(char *str, int max)
 
        case 0:
        {
-               /* ÉÔÌÀ¤Î´Á»ú¥³¡¼¥É¤«¤é¥·¥¹¥Æ¥à¤Î´Á»ú¥³¡¼¥É¤ËÊÑ´¹ */
+               /* 不明の漢字コードからシステムの漢字コードに変換 */
                byte code = codeconv(str);
 
-               /* ´Á»ú¥³¡¼¥É¤¬È½ÌÀ¤·¤¿¤é¡¢¤½¤ì¤òµ­Ï¿ */
+               /* 漢字コードが判明したら、それを記録 */
                if (code) kanji_code = code;
 
                break;
@@ -434,7 +434,7 @@ static void rd_item_old(object_type *o_ptr)
                        case 4: add_flag(o_ptr->art_flags, TR_SLOW_DIGEST); break;
                        case 5: add_flag(o_ptr->art_flags, TR_REGEN);       break;
                        case 6: add_flag(o_ptr->art_flags, TR_FREE_ACT);    break;
-                       case 7: add_flag(o_ptr->art_flags, TR_HOLD_LIFE);   break;
+                       case 7: add_flag(o_ptr->art_flags, TR_HOLD_EXP);   break;
                        }
                        o_ptr->xtra2 = 0;
                }
@@ -2277,7 +2277,7 @@ static errr rd_inventory(void)
                {
                        /* Oops */
 #ifdef JP
-note("»ý¤Áʪ¤ÎÃæ¤Î¥¢¥¤¥Æ¥à¤¬Â¿¤¹¤®¤ë¡ª");
+note("持ち物の中のアイテムが多すぎる!");
 #else
                        note("Too many items in the inventory!");
 #endif
@@ -2399,7 +2399,7 @@ static errr rd_dungeon_old(void)
        rd_s16b(&tmp16s); /* max_panel_cols */
 
 #if 0
-       if (!py || !px) {py = 10;px = 10;}/* ¥À¥ó¥¸¥ç¥óÀ¸À®¤Ë¼ºÇÔ¤·¤Æ¥»¥°¥á¥ó¥Æ¤Ã¤¿¤È¤­¤ÎÉüµìÍÑ */
+       if (!py || !px) {py = 10;px = 10;}/* ダンジョン生成に失敗してセグメンテったときの復旧用 */
 #endif
 
        /* Maximal size */
@@ -2651,7 +2651,7 @@ static errr rd_dungeon_old(void)
        if (limit > max_o_idx)
        {
 #ifdef JP
-note(format("¥¢¥¤¥Æ¥à¤ÎÇÛÎó¤¬Â礭¤¹¤®¤ë(%d)¡ª", limit));
+note(format("アイテムの配列が大きすぎる(%d)!", limit));
 #else
                note(format("Too many (%d) object entries!", limit));
 #endif
@@ -2674,7 +2674,7 @@ note(format("
                if (i != o_idx)
                {
 #ifdef JP
-note(format("¥¢¥¤¥Æ¥àÇÛÃÖ¥¨¥é¡¼ (%d <> %d)", i, o_idx));
+note(format("ã\82¢ã\82¤ã\83\86ã\83 é\85\8dç½®ã\82¨ã\83©ã\83¼ (%d <> %d)", i, o_idx));
 #else
                        note(format("Object allocation error (%d <> %d)", i, o_idx));
 #endif
@@ -2731,7 +2731,7 @@ note(format("
        if (limit > max_m_idx)
        {
 #ifdef JP
-note(format("¥â¥ó¥¹¥¿¡¼¤ÎÇÛÎó¤¬Â礭¤¹¤®¤ë(%d)¡ª", limit));
+note(format("モンスターの配列が大きすぎる(%d)!", limit));
 #else
                note(format("Too many (%d) monster entries!", limit));
 #endif
@@ -2752,7 +2752,7 @@ note(format("
                if (i != m_idx)
                {
 #ifdef JP
-note(format("¥â¥ó¥¹¥¿¡¼ÇÛÃÖ¥¨¥é¡¼ (%d <> %d)", i, m_idx));
+note(format("ã\83¢ã\83³ã\82¹ã\82¿ã\83¼é\85\8dç½®ã\82¨ã\83©ã\83¼ (%d <> %d)", i, m_idx));
 #else
                        note(format("Monster allocation error (%d <> %d)", i, m_idx));
 #endif
@@ -3191,7 +3191,7 @@ static errr rd_dungeon(void)
        {
        case 151:
 #ifdef JP
-               note("¥¢¥¤¥Æ¥à¤ÎÇÛÎó¤¬Â礭¤¹¤®¤ë¡ª");
+               note("アイテムの配列が大きすぎる!");
 #else
                note("Too many object entries!");
 #endif
@@ -3199,7 +3199,7 @@ static errr rd_dungeon(void)
 
        case 152:
 #ifdef JP
-               note("¥¢¥¤¥Æ¥àÇÛÃÖ¥¨¥é¡¼");
+               note("ã\82¢ã\82¤ã\83\86ã\83 é\85\8dç½®ã\82¨ã\83©ã\83¼");
 #else
                note("Object allocation error");
 #endif
@@ -3207,7 +3207,7 @@ static errr rd_dungeon(void)
 
        case 161:
 #ifdef JP
-               note("¥â¥ó¥¹¥¿¡¼¤ÎÇÛÎó¤¬Â礭¤¹¤®¤ë¡ª");
+               note("モンスターの配列が大きすぎる!");
 #else
                note("Too many monster entries!");
 #endif
@@ -3215,7 +3215,7 @@ static errr rd_dungeon(void)
 
        case 162:
 #ifdef JP
-               note("¥â¥ó¥¹¥¿¡¼ÇÛÃÖ¥¨¥é¡¼");
+               note("ã\83¢ã\83³ã\82¹ã\82¿ã\83¼é\85\8dç½®ã\82¨ã\83©ã\83¼");
 #else
                note("Monster allocation error");
 #endif
@@ -3223,7 +3223,7 @@ static errr rd_dungeon(void)
 
        case 171:
 #ifdef JP
-               note("Êݸ¤µ¤ì¤¿¥Õ¥í¥¢¤Î¥À¥ó¥¸¥ç¥ó¥Ç¡¼¥¿¤¬²õ¤ì¤Æ¤¤¤Þ¤¹¡ª");
+               note("保存されたフロアのダンジョンデータが壊れています!");
 #else
                note("Dungeon data of saved floors are broken!");
 #endif
@@ -3231,7 +3231,7 @@ static errr rd_dungeon(void)
 
        case 182:
 #ifdef JP
-               note("¥Æ¥ó¥Ý¥é¥ê¡¦¥Õ¥¡¥¤¥ë¤òºîÀ®¤Ç¤­¤Þ¤»¤ó¡ª");
+               note("テンポラリ・ファイルを作成できません!");
 #else
                note("Failed to make temporal files!");
 #endif
@@ -3278,7 +3278,7 @@ static errr rd_savefile_new_aux(void)
        /* Mention the savefile version */
        note(format(
 #ifdef JP
-                    "¥Ð¡¼¥¸¥ç¥ó %d.%d.%d ¤Î¥»¡¼¥Ö¡¦¥Õ¥¡¥¤¥ë¤ò¥í¡¼¥ÉÃæ...",
+                    "バージョン %d.%d.%d のセーブ・ファイルをロード中...",
 #else
                     "Loading a %d.%d.%d savefile...",
 #endif
@@ -3331,7 +3331,7 @@ static errr rd_savefile_new_aux(void)
        /* Read RNG state */
        rd_randomizer();
 #ifdef JP
-if (arg_fiddle) note("Íð¿ô¾ðÊó¤ò¥í¡¼¥É¤·¤Þ¤·¤¿");
+if (arg_fiddle) note("乱数情報をロードしました");
 #else
        if (arg_fiddle) note("Loaded Randomizer Info");
 #endif
@@ -3341,7 +3341,7 @@ if (arg_fiddle) note("
        /* Then the options */
        rd_options();
 #ifdef JP
-if (arg_fiddle) note("¥ª¥×¥·¥ç¥ó¤ò¥í¡¼¥É¤·¤Þ¤·¤¿");
+if (arg_fiddle) note("オプションをロードしました");
 #else
        if (arg_fiddle) note("Loaded Option Flags");
 #endif
@@ -3349,7 +3349,7 @@ if (arg_fiddle) note("
        /* Then the "messages" */
        rd_messages();
 #ifdef JP
-if (arg_fiddle) note("¥á¥Ã¥»¡¼¥¸¤ò¥í¡¼¥É¤·¤Þ¤·¤¿");
+if (arg_fiddle) note("メッセージをロードしました");
 #else
        if (arg_fiddle) note("Loaded Messages");
 #endif
@@ -3377,7 +3377,7 @@ if (arg_fiddle) note("
        if (tmp16u > max_r_idx)
        {
 #ifdef JP
-note(format("¥â¥ó¥¹¥¿¡¼¤Î¼ï²¤¬Â¿¤¹¤®¤ë(%u)¡ª", tmp16u));
+note(format("モンスターの種族が多すぎる(%u)!", tmp16u));
 #else
                note(format("Too many (%u) monster races!", tmp16u));
 #endif
@@ -3393,7 +3393,7 @@ note(format("
        }
 
 #ifdef JP
-if (arg_fiddle) note("¥â¥ó¥¹¥¿¡¼¤Î»×¤¤½Ð¤ò¥í¡¼¥É¤·¤Þ¤·¤¿");
+if (arg_fiddle) note("モンスターの思い出をロードしました");
 #else
        if (arg_fiddle) note("Loaded Monster Memory");
 #endif
@@ -3407,7 +3407,7 @@ if (arg_fiddle) note("
        if (tmp16u > max_k_idx)
        {
 #ifdef JP
-note(format("¥¢¥¤¥Æ¥à¤Î¼ïÎब¿¤¹¤®¤ë(%u)¡ª", tmp16u));
+note(format("アイテムの種類が多すぎる(%u)!", tmp16u));
 #else
                note(format("Too many (%u) object kinds!", tmp16u));
 #endif
@@ -3427,21 +3427,11 @@ note(format("
                k_ptr->tried = (tmp8u & 0x02) ? TRUE: FALSE;
        }
 #ifdef JP
-if (arg_fiddle) note("¥¢¥¤¥Æ¥à¤Îµ­Ï¿¤ò¥í¡¼¥É¤·¤Þ¤·¤¿");
+if (arg_fiddle) note("アイテムの記録をロードしました");
 #else
        if (arg_fiddle) note("Loaded Object Memory");
 #endif
 
-
-       /* Init the wilderness seeds */
-       for (i = 0; i < max_wild_x; i++)
-       {
-               for (j = 0; j < max_wild_y; j++)
-               {
-                       wilderness[j][i].seed = randint0(0x10000000);
-               }
-       }
-
        /* 2.1.3 or newer version */
        {
                u16b max_towns_load;
@@ -3456,7 +3446,7 @@ if (arg_fiddle) note("
                if (max_towns_load > max_towns)
                {
 #ifdef JP
-note(format("Ä®¤¬Â¿¤¹¤®¤ë(%u)¡ª", max_towns_load));
+note(format("町が多すぎる(%u)!", max_towns_load));
 #else
                        note(format("Too many (%u) towns!", max_towns_load));
 #endif
@@ -3480,7 +3470,7 @@ note(format("Į
                if (max_quests_load > max_quests)
                {
 #ifdef JP
-note(format("¥¯¥¨¥¹¥È¤¬Â¿¤¹¤®¤ë(%u)¡ª", max_quests_load));
+note(format("クエストが多すぎる(%u)!", max_quests_load));
 #else
                        note(format("Too many (%u) quests!", max_quests_load));
 #endif
@@ -3609,7 +3599,7 @@ note(format("
                if ((wild_x_size > max_wild_x) || (wild_y_size > max_wild_y))
                {
 #ifdef JP
-note(format("¹ÓÌÂ礭¤¹¤®¤ë(%u/%u)¡ª", wild_x_size, wild_y_size));
+note(format("荒野が大きすぎる(%u/%u)!", wild_x_size, wild_y_size));
 #else
                        note(format("Wilderness is too big (%u/%u)!", wild_x_size, wild_y_size));
 #endif
@@ -3628,7 +3618,7 @@ note(format("
        }
 
 #ifdef JP
-if (arg_fiddle) note("¥¯¥¨¥¹¥È¾ðÊó¤ò¥í¡¼¥É¤·¤Þ¤·¤¿");
+if (arg_fiddle) note("クエスト情報をロードしました");
 #else
        if (arg_fiddle) note("Loaded Quests");
 #endif
@@ -3640,7 +3630,7 @@ if (arg_fiddle) note("
        if (tmp16u > max_a_idx)
        {
 #ifdef JP
-note(format("ÅÁÀâ¤Î¥¢¥¤¥Æ¥à¤¬Â¿¤¹¤®¤ë(%u)¡ª", tmp16u));
+note(format("伝説のアイテムが多すぎる(%u)!", tmp16u));
 #else
                note(format("Too many (%u) artifacts!", tmp16u));
 #endif
@@ -3670,7 +3660,7 @@ note(format("
                }
        }
 #ifdef JP
-if (arg_fiddle) note("ÅÁÀâ¤Î¥¢¥¤¥Æ¥à¤ò¥í¡¼¥É¤·¤Þ¤·¤¿");
+if (arg_fiddle) note("伝説のアイテムをロードしました");
 #else
        if (arg_fiddle) note("Loaded Artifacts");
 #endif
@@ -3682,7 +3672,7 @@ if (arg_fiddle) note("
        if (p_ptr->energy_need < -999) world_player = TRUE;
 
 #ifdef JP
-if (arg_fiddle) note("ÆÃÊ̾ðÊó¤ò¥í¡¼¥É¤·¤Þ¤·¤¿");
+if (arg_fiddle) note("特別情報をロードしました");
 #else
        if (arg_fiddle) note("Loaded extra information");
 #endif
@@ -3695,7 +3685,7 @@ if (arg_fiddle) note("
        if (tmp16u > PY_MAX_LEVEL)
        {
 #ifdef JP
-note(format("¥Ò¥Ã¥È¥Ý¥¤¥ó¥ÈÇÛÎó¤¬Â礭¤¹¤®¤ë(%u)¡ª", tmp16u));
+note(format("ヒットポイント配列が大きすぎる(%u)!", tmp16u));
 #else
                note(format("Too many (%u) hitpoint entries!", tmp16u));
 #endif
@@ -3783,7 +3773,7 @@ note(format("
        if (rd_inventory())
        {
 #ifdef JP
-note("»ý¤Áʪ¾ðÊó¤òÆɤ߹þ¤à¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó");
+note("持ち物情報を読み込むことができません");
 #else
                note("Unable to read inventory");
 #endif
@@ -3867,7 +3857,7 @@ note("
        {
                /* Dead players have no dungeon */
 #ifdef JP
-note("¥À¥ó¥¸¥ç¥óÉü¸µÃæ...");
+note("ダンジョン復元中...");
 #else
                note("Restoring Dungeon...");
 #endif
@@ -3875,7 +3865,7 @@ note("
                if (rd_dungeon())
                {
 #ifdef JP
-note("¥À¥ó¥¸¥ç¥ó¥Ç¡¼¥¿Æɤ߹þ¤ß¼ºÇÔ");
+note("ダンジョンデータ読み込み失敗");
 #else
                        note("Error reading dungeon data");
 #endif
@@ -3918,7 +3908,7 @@ note("
        if (o_v_check != n_v_check)
        {
 #ifdef JP
-note("¥Á¥§¥Ã¥¯¥µ¥à¤¬¤ª¤«¤·¤¤");
+note("チェックサムがおかしい");
 #else
                note("Invalid checksum");
 #endif
@@ -3938,7 +3928,7 @@ note("
        if (o_x_check != n_x_check)
        {
 #ifdef JP
-note("¥¨¥ó¥³¡¼¥É¤µ¤ì¤¿¥Á¥§¥Ã¥¯¥µ¥à¤¬¤ª¤«¤·¤¤");
+note("エンコードされたチェックサムがおかしい");
 #else
                note("Invalid encoded checksum");
 #endif