OSDN Git Service

[Refactor] #38997 place_solid_perm_bold() を削除し、place_grid() に統合 / Removed place_solid...
authorHourier <hourier@users.sourceforge.jp>
Sat, 18 Jan 2020 10:57:42 +0000 (19:57 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 18 Jan 2020 14:01:53 +0000 (23:01 +0900)
src/floor-generate.c
src/floor-save.c
src/grid.c
src/grid.h

index c5d1e0c..3d0f1de 100644 (file)
@@ -1078,7 +1078,7 @@ static void generate_challenge_arena(player_type *challanger_ptr)
                for (x = 0; x < MAX_WID; x++)
                {
                        /* Create "solid" perma-wall */
-                       place_solid_perm_bold(challanger_ptr, y, x);
+                       place_bold(challanger_ptr, y, x, solid_perm);
 
                        /* Illuminate and memorize the walls */
                        floor_ptr->grid_array[y][x].info |= (CAVE_GLOW | CAVE_MARK);
@@ -1192,7 +1192,7 @@ static void generate_gambling_arena(player_type *creature_ptr)
                for (x = 0; x < MAX_WID; x++)
                {
                        /* Create "solid" perma-wall */
-                       place_solid_perm_bold(creature_ptr, y, x);
+                       place_bold(creature_ptr, y, x, solid_perm);
 
                        /* Illuminate and memorize the walls */
                        floor_ptr->grid_array[y][x].info |= (CAVE_GLOW | CAVE_MARK);
@@ -1244,7 +1244,7 @@ static void generate_fixed_floor(player_type *player_ptr)
        {
                for (x = 0; x < floor_ptr->width; x++)
                {
-                       place_solid_perm_bold(player_ptr, y, x);
+                       place_bold(player_ptr, y, x, solid_perm);
                }
        }
 
index 6f4ee24..cf78a76 100644 (file)
@@ -373,7 +373,7 @@ static void build_dead_end(player_type *creature_ptr)
                for (x = 0; x < MAX_WID; x++)
                {
                        /* Create "solid" perma-wall */
-                       place_solid_perm_bold(creature_ptr, y, x);
+                       place_bold(creature_ptr, y, x, solid_perm);
                }
        }
 
index 26cd41e..24df711 100644 (file)
@@ -1295,16 +1295,6 @@ bool darkened_grid(player_type *player_ptr, grid_type *g_ptr)
 }
 
 
-void place_solid_perm_bold(player_type *player_ptr, POSITION y, POSITION x)
-{
-       floor_type *floor_ptr = player_ptr->current_floor_ptr;
-       set_cave_feat(floor_ptr, y, x, feat_permanent);
-       floor_ptr->grid_array[y][x].info &= ~(CAVE_MASK);
-       add_cave_info(floor_ptr, y, x, CAVE_SOLID);
-       delete_monster(player_ptr, y, x);
-}
-
-
 void place_solid_noperm_bold(player_type *player_ptr, POSITION y, POSITION x)
 {
        feature_type *f_ptr = &f_info[feat_wall_solid];
index ae67609..3a37182 100644 (file)
@@ -218,7 +218,6 @@ extern void place_grid(player_type *player_ptr, grid_type *g_ptr, grid_bold_type
 extern bool darkened_grid(player_type *player_ptr, grid_type *g_ptr);
 extern void delete_monster(player_type *player_ptr, POSITION y, POSITION x);
 extern void place_bold(player_type *player_ptr, POSITION y, POSITION x, grid_bold_type gh_type);
-void place_solid_perm_bold(player_type *player_ptr, POSITION y, POSITION x);
 void place_solid_noperm_bold(player_type *player_ptr, POSITION y, POSITION x);
 
 /*