OSDN Git Service

(2.2.0.18) bldg.cとfiles.c内のC4457警告に対応。 / Deal C4457 warning in bldg.c and files.c.
authorDeskull <desull@users.sourceforge.jp>
Sat, 8 Jul 2017 14:49:25 +0000 (23:49 +0900)
committerDeskull <desull@users.sourceforge.jp>
Sat, 8 Jul 2017 14:50:03 +0000 (23:50 +0900)
src/bldg.c
src/defines.h
src/files.c

index 8a430d9..d7b352f 100644 (file)
@@ -3193,24 +3193,24 @@ static int repair_broken_weapon_aux(int bcost)
 
        if (o_ptr->sval == SV_BROKEN_DAGGER)
        {
-               int i, n = 1;
+               int j, n = 1;
 
                /* Suppress compiler warning */
                k_idx = 0;
 
-               for (i = 1; i < max_k_idx; i++)
+               for (j = 1; j < max_k_idx; j++)
                {
-                       object_kind *k_ptr = &k_info[i];
+                       object_kind *k_aux_ptr = &k_info[j];
 
-                       if (k_ptr->tval != TV_SWORD) continue;
-                       if ((k_ptr->sval == SV_BROKEN_DAGGER) ||
-                               (k_ptr->sval == SV_BROKEN_SWORD) ||
-                               (k_ptr->sval == SV_DOKUBARI)) continue;
-                       if (k_ptr->weight > 99) continue;
+                       if (k_aux_ptr->tval != TV_SWORD) continue;
+                       if ((k_aux_ptr->sval == SV_BROKEN_DAGGER) ||
+                               (k_aux_ptr->sval == SV_BROKEN_SWORD) ||
+                               (k_aux_ptr->sval == SV_DOKUBARI)) continue;
+                       if (k_aux_ptr->weight > 99) continue;
 
                        if (one_in_(n)) 
                        {
-                               k_idx = i;
+                               k_idx = j;
                                n++;
                        }
                }
index 61183f9..fc1ed43 100644 (file)
@@ -53,7 +53,7 @@
 #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */
 #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */
 #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */
-#define FAKE_VER_EXTRA 17 /*!< ゲームのバージョン番号定義(エクストラ番号) */
+#define FAKE_VER_EXTRA 18 /*!< ゲームのバージョン番号定義(エクストラ番号) */
 
 
  /*!
index a31e15b..7b3b23a 100644 (file)
@@ -6474,14 +6474,14 @@ static void print_tomb(void)
                {
                        if (dun_level == 0)
                        {
-                               cptr town = p_ptr->town_num ? "街" : "荒野";
+                               cptr field_name = p_ptr->town_num ? "街" : "荒野";
                                if (streq(p_ptr->died_from, "途中終了"))
                                {
-                                       sprintf(tmp, "%sで死んだ", town);
+                                       sprintf(tmp, "%sで死んだ", field_name);
                                }
                                else
                                {
-                                       sprintf(tmp, "に%sで殺された", town);
+                                       sprintf(tmp, "に%sで殺された", field_name);
                                }
                        }
                        else