OSDN Git Service

[Refactor] #37287 #37353 型の置換。 / Type replacement.
authorDeskull <deskull@users.sourceforge.jp>
Wed, 14 Nov 2018 12:44:59 +0000 (21:44 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Wed, 14 Nov 2018 12:44:59 +0000 (21:44 +0900)
src/cmd4.c
src/effects.c
src/flavor.c
src/floor-generate.c
src/init1.c
src/object2.c
src/xtra2.c

index fef76e2..8b500d3 100644 (file)
@@ -369,7 +369,7 @@ errr do_cmd_write_nikki(int type, int num, cptr note)
        cptr note_level = "";
        bool do_level = TRUE;
        char note_level_buf[40];
-       int q_idx;
+       QUEST_IDX q_idx;
 
        static bool disable_nikki = FALSE;
 
index eb485b3..5d41b9e 100644 (file)
@@ -4520,7 +4520,7 @@ int take_hit(int damage_type, HIT_POINT damage, cptr hit_from, int monspell)
                }
                else
                {
-                       int q_idx = quest_number(dun_level);
+                       QUEST_IDX q_idx = quest_number(dun_level);
                        bool seppuku = streq(hit_from, "Seppuku");
                        bool winning_seppuku = p_ptr->total_winner && seppuku;
 
index e829ea5..22c02d6 100644 (file)
@@ -1249,7 +1249,7 @@ bool object_is_quest_target(object_type *o_ptr)
 {
        if (p_ptr->inside_quest)
        {
-               int a_idx = quest[p_ptr->inside_quest].k_idx;
+               ARTIFACT_IDX a_idx = quest[p_ptr->inside_quest].k_idx;
                if (a_idx)
                {
                        artifact_type *a_ptr = &a_info[a_idx];
index c98c180..9f2ba73 100644 (file)
@@ -184,7 +184,7 @@ static bool alloc_stairs(IDX feat, int num, int walls)
        }
        else if (have_flag(f_ptr->flags, FF_MORE))
        {
-               int q_idx = quest_number(dun_level);
+               QUEST_IDX q_idx = quest_number(dun_level);
 
                /* No downstairs on quest levels */
                if (dun_level > 1 && q_idx)
index f91ae1f..793193d 100644 (file)
@@ -3730,7 +3730,7 @@ static errr parse_line_feature(char *buf)
                                {
                                        if (p_ptr->inside_quest)
                                        {
-                                               int a_idx = quest[p_ptr->inside_quest].k_idx;
+                                               ARTIFACT_IDX a_idx = quest[p_ptr->inside_quest].k_idx;
                                                if (a_idx)
                                                {
                                                        artifact_type *a_ptr = &a_info[a_idx];
index 332bcf3..c9d9c60 100644 (file)
@@ -656,7 +656,7 @@ static errr get_obj_num_prep(void)
 OBJECT_IDX get_obj_num(DEPTH level)
 {
        int i, j, p;
-       int k_idx;
+       KIND_OBJECT_IDX k_idx;
        long value, total;
        object_kind     *k_ptr;
        alloc_entry     *table = alloc_kind_table;
index a476df8..f62015f 100644 (file)
@@ -5700,9 +5700,9 @@ void display_rumor(bool ex)
                                        r_ptr->r_sights++;
                                }
                        }
-                       else if  (strcmp(zz[0], "DUNGEON") == 0)
+                       else if (strcmp(zz[0], "DUNGEON") == 0)
                        {
-                               int d_idx;
+                               DUNGEON_IDX d_idx;
                                dungeon_info_type *d_ptr;
 
                                while (1)