OSDN Git Service

[Refactor] #37353 後で同名の構造体を作り、feat_*と命名を一致させるため floor_type を feat_ground_type に改名...
authorDeskull <deskull@users.sourceforge.jp>
Tue, 5 Feb 2019 04:32:16 +0000 (13:32 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Tue, 5 Feb 2019 04:32:41 +0000 (13:32 +0900)
src/cave.c
src/externs.h
src/floor-save.c
src/grid.c
src/grid.h
src/rooms.c
src/spells2.c
src/variable.c
src/wild.c

index 7550365..ba2162a 100644 (file)
@@ -4598,7 +4598,7 @@ FEAT_IDX conv_dungeon_feat(FEAT_IDX newfeat)
                switch (f_ptr->subtype)
                {
                case CONVERT_TYPE_FLOOR:
-                       return floor_type[randint0(100)];
+                       return feat_ground_type[randint0(100)];
                case CONVERT_TYPE_WALL:
                        return fill_type[randint0(100)];
                case CONVERT_TYPE_INNER:
index 06535bd..dbc539b 100644 (file)
@@ -445,7 +445,7 @@ extern DEPTH *max_dlv;
 extern FEAT_IDX feat_wall_outer;
 extern FEAT_IDX feat_wall_inner;
 extern FEAT_IDX feat_wall_solid;
-extern FEAT_IDX floor_type[100], fill_type[100];
+extern FEAT_IDX feat_ground_type[100], fill_type[100];
 extern bool now_damaged;
 extern COMMAND_CODE now_message;
 extern bool use_menu;
index 76a8a7f..9997eff 100644 (file)
@@ -1140,7 +1140,7 @@ void change_floor(void)
                                                if (change_floor_mode & (CFM_DOWN | CFM_UP))
                                                {
                                                        /* Reset to floor */
-                                                       c_ptr->feat = floor_type[randint0(100)];
+                                                       c_ptr->feat = feat_ground_type[randint0(100)];
                                                }
 
                                                c_ptr->special = 0;
@@ -1483,7 +1483,7 @@ void stair_creation(void)
 
                                /* Remove old stairs */
                                c_ptr->special = 0;
-                               cave_set_feat(y, x, floor_type[randint0(100)]);
+                               cave_set_feat(y, x, feat_ground_type[randint0(100)]);
                        }
                }
        }
index acd325d..f6d09cd 100644 (file)
@@ -182,7 +182,7 @@ void place_random_door(POSITION y, POSITION x, bool room)
                        {
                                if (have_flag(f_info[c_ptr->mimic].flags, FF_MOVE) || have_flag(f_info[c_ptr->mimic].flags, FF_CAN_FLY))
                                {
-                                       c_ptr->feat = one_in_(2) ? c_ptr->mimic : floor_type[randint0(100)];
+                                       c_ptr->feat = one_in_(2) ? c_ptr->mimic : feat_ground_type[randint0(100)];
                                }
                                c_ptr->mimic = 0;
                        }
@@ -320,7 +320,7 @@ void place_secret_door(POSITION y, POSITION x, int type)
                        {
                                if (have_flag(f_info[c_ptr->mimic].flags, FF_MOVE) || have_flag(f_info[c_ptr->mimic].flags, FF_CAN_FLY))
                                {
-                                       c_ptr->feat = one_in_(2) ? c_ptr->mimic : floor_type[randint0(100)];
+                                       c_ptr->feat = one_in_(2) ? c_ptr->mimic : feat_ground_type[randint0(100)];
                                }
                                c_ptr->mimic = 0;
                        }
index 3268555..16f6702 100644 (file)
@@ -65,7 +65,7 @@
 
 #define place_floor_bold(Y, X) \
 { \
-       set_cave_feat(Y,X,floor_type[randint0(100)]); \
+       set_cave_feat(Y,X,feat_ground_type[randint0(100)]); \
        cave[Y][X].info &= ~(CAVE_MASK); \
        add_cave_info(Y,X,CAVE_FLOOR); \
        delete_monster(Y, X); \
@@ -73,7 +73,7 @@
 
 #define place_floor_grid(C) \
 { \
-       (C)->feat = floor_type[randint0(100)]; \
+       (C)->feat = feat_ground_type[randint0(100)]; \
        (C)->info &= ~(CAVE_MASK); \
        (C)->info |= CAVE_FLOOR; \
        if ((C)->m_idx) delete_monster_idx((C)->m_idx); \
index 5135bfa..2a4391e 100644 (file)
@@ -968,9 +968,9 @@ bool generate_fracave(POSITION y0, POSITION x0, POSITION xsize, POSITION ysize,
        fill_data.c3 = 0;
 
        /* features to fill with */
-       fill_data.feat1 = floor_type[randint0(100)];
-       fill_data.feat2 = floor_type[randint0(100)];
-       fill_data.feat3 = floor_type[randint0(100)];
+       fill_data.feat1 = feat_ground_type[randint0(100)];
+       fill_data.feat2 = feat_ground_type[randint0(100)];
+       fill_data.feat3 = feat_ground_type[randint0(100)];
 
        fill_data.info1 = CAVE_FLOOR;
        fill_data.info2 = CAVE_FLOOR;
@@ -1189,21 +1189,21 @@ bool generate_lake(POSITION y0, POSITION x0, POSITION xsize, POSITION ysize, int
        case LAKE_T_LAVA: /* Lava */
                feat1 = feat_deep_lava;
                feat2 = feat_shallow_lava;
-               feat3 = floor_type[randint0(100)];
+               feat3 = feat_ground_type[randint0(100)];
                break;
        case LAKE_T_WATER: /* Water */
                feat1 = feat_deep_water;
                feat2 = feat_shallow_water;
-               feat3 = floor_type[randint0(100)];
+               feat3 = feat_ground_type[randint0(100)];
                break;
        case LAKE_T_CAVE: /* Collapsed cave */
-               feat1 = floor_type[randint0(100)];
-               feat2 = floor_type[randint0(100)];
+               feat1 = feat_ground_type[randint0(100)];
+               feat2 = feat_ground_type[randint0(100)];
                feat3 = feat_rubble;
                break;
        case LAKE_T_EARTH_VAULT: /* Earth vault */
                feat1 = feat_rubble;
-               feat2 = floor_type[randint0(100)];
+               feat2 = feat_ground_type[randint0(100)];
                feat3 = feat_rubble;
                break;
        case LAKE_T_AIR_VAULT: /* Air vault */
index 62904f6..f0d7733 100644 (file)
@@ -1542,7 +1542,7 @@ bool destroy_area(POSITION y1, POSITION x1, POSITION r, bool in_generate)
                                        else
                                        {
                                                /* Create floor */
-                                               cave_set_feat(y, x, floor_type[randint0(100)]);
+                                               cave_set_feat(y, x, feat_ground_type[randint0(100)]);
                                        }
                                }
                                else /* In generation */
@@ -2040,7 +2040,7 @@ bool earthquake_aux(POSITION cy, POSITION cx, POSITION r, MONSTER_IDX m_idx)
                                else
                                {
                                        /* Create floor */
-                                       cave_set_feat(yy, xx, floor_type[randint0(100)]);
+                                       cave_set_feat(yy, xx, feat_ground_type[randint0(100)]);
                                }
                        }
                }
index f85e0de..d471056 100644 (file)
@@ -956,7 +956,7 @@ DEPTH *max_dlv;
 FEAT_IDX feat_wall_outer;
 FEAT_IDX feat_wall_inner;
 FEAT_IDX feat_wall_solid;
-FEAT_IDX floor_type[100], fill_type[100];
+FEAT_IDX feat_ground_type[100], fill_type[100];
 
 bool now_damaged;
 COMMAND_CODE now_message;
index e3dd6c9..08dacb9 100644 (file)
@@ -56,7 +56,7 @@ void set_floor_and_wall(DUNGEON_IDX type)
        cur_type = type;
        d_ptr = &d_info[type];
 
-       set_floor_and_wall_aux(floor_type, d_ptr->floor);
+       set_floor_and_wall_aux(feat_ground_type, d_ptr->floor);
        set_floor_and_wall_aux(fill_type, d_ptr->fill);
 
        feat_wall_outer = d_ptr->outer_wall;