}
-void place_inner_perm_grid(grid_type *g_ptr)
-{
- g_ptr->feat = feat_permanent;
- g_ptr->info &= ~(CAVE_MASK);
- g_ptr->info |= CAVE_INNER;
- if (g_ptr->m_idx) delete_monster_idx(g_ptr->m_idx);
-}
-
-
void place_outer_grid(grid_type *g_ptr)
{
g_ptr->feat = feat_wall_outer;
g_ptr->info |= CAVE_INNER;
break;
}
- case outer:
+ case inner_perm:
{
g_ptr->feat = feat_permanent;
g_ptr->info |= CAVE_INNER;
break;
}
+ case outer:
+ {
+ g_ptr->feat = feat_wall_outer;
+ g_ptr->info |= CAVE_OUTER;
+ break;
+ }
case outer_noperm:
{
feature_type *f_ptr = &f_info[feat_wall_outer];
floor,
extra,
inner,
+ inner_perm,
outer,
outer_noperm,
solid_perm
} place_grid_type;
-extern void place_inner_perm_grid(grid_type *g_ptr);
extern void place_outer_grid(grid_type *g_ptr);
extern void place_outer_noperm_grid(grid_type *g_ptr);
extern void place_solid_perm_grid(grid_type *g_ptr);
y = yval + 2 * ddy_ddd[dir1];
x = xval + 2 * ddx_ddd[dir1];
g_ptr = &floor_ptr->grid_array[y][x];
- place_inner_perm_grid(g_ptr);
+ place_grid(g_ptr, inner_perm);
g_ptr->feat = feat_permanent_glass_wall;
floor_ptr->grid_array[yval + ddy_ddd[dir1]][xval + ddx_ddd[dir1]].info |= (CAVE_ICKY);
}
/* Permanent wall (inner) */
case 'X':
- place_inner_perm_grid(g_ptr);
+ place_grid(g_ptr, inner_perm);
break;
/* Permanent glass wall (inner) */
case 'Y':
- place_inner_perm_grid(g_ptr);
+ place_grid(g_ptr, inner_perm);
g_ptr->feat = feat_permanent_glass_wall;
break;
g_ptr->info |= (CAVE_ROOM | CAVE_ICKY);
/* Permanent walls */
- place_inner_perm_grid(g_ptr);
+ place_grid(g_ptr, inner_perm);
}
}