if (is_outer_bold(floor_ptr, y, x))
{
/* Change the wall to a "solid" wall */
- place_solid_noperm_bold(player_ptr, y, x);
+ place_bold(player_ptr, y, x, solid_noperm);
}
}
}
if (is_outer_bold(floor_ptr, j, i))
{
/* Change the wall to a "solid" wall */
- place_solid_noperm_bold(player_ptr, j, i);
+ place_bold(player_ptr, j, i, solid_noperm);
}
}
}
g_ptr->info |= CAVE_SOLID;
break;
}
+ case solid_noperm:
+ {
+ // No such grid
+ return;
+ }
default:
return;
}
}
-void place_solid_noperm_bold(player_type *player_ptr, POSITION y, POSITION x)
-{
- feature_type *f_ptr = &f_info[feat_wall_solid];
- floor_type *floor_ptr = player_ptr->current_floor_ptr;
- if ((floor_ptr->grid_array[y][x].info & CAVE_VAULT) && permanent_wall(f_ptr))
- set_cave_feat(floor_ptr, y, x, feat_state(feat_wall_solid, FF_UNPERM));
- else set_cave_feat(floor_ptr, y, x, feat_wall_solid);
- 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_bold(player_type *player_ptr, POSITION y, POSITION x, grid_bold_type gb_type)
{
floor_type *floor_ptr = player_ptr->current_floor_ptr;
outer,
outer_noperm,
solid,
- solid_perm
+ solid_perm,
+ solid_noperm
} grid_bold_type;
extern void place_grid(player_type *player_ptr, grid_type *g_ptr, grid_bold_type pg_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_noperm_bold(player_type *player_ptr, POSITION y, POSITION x);
/*
* Get feature mimic from f_info[] (applying "mimic" field)