POSITION y = j_ptr->iy;
POSITION x = j_ptr->ix;
- c_ptr = &cave[y][x];
+ c_ptr = &grid_array[y][x];
/* Scan all objects in the grid */
for (this_o_idx = c_ptr->o_idx; this_o_idx; this_o_idx = next_o_idx)
/* Refuse "illegal" locations */
if (!in_bounds(y, x)) return;
- c_ptr = &cave[y][x];
+ c_ptr = &grid_array[y][x];
/* Scan all objects in the grid */
for (this_o_idx = c_ptr->o_idx; this_o_idx; this_o_idx = next_o_idx)
x = o_ptr->ix;
/* Acquire grid */
- c_ptr = &cave[y][x];
+ c_ptr = &grid_array[y][x];
/* Repair grid */
if (c_ptr->o_idx == i1)
POSITION x = o_ptr->ix;
/* Access grid */
- c_ptr = &cave[y][x];
+ c_ptr = &grid_array[y][x];
/* Hack -- see above */
c_ptr->o_idx = 0;
OBJECT_IDX o_idx;
/* Acquire grid */
- grid_type *c_ptr = &cave[y][x];
+ grid_type *c_ptr = &grid_array[y][x];
object_type forge;
object_type *q_ptr;
OBJECT_IDX o_idx;
/* Acquire grid */
- grid_type *c_ptr = &cave[y][x];
+ grid_type *c_ptr = &grid_array[y][x];
object_type forge;
object_type *q_ptr;
if (!projectable(y, x, ty, tx)) continue;
/* Obtain grid */
- c_ptr = &cave[ty][tx];
+ c_ptr = &grid_array[ty][tx];
/* Require floor space */
if (!cave_drop_bold(ty, tx)) continue;
}
- c_ptr = &cave[by][bx];
+ c_ptr = &grid_array[by][bx];
/* Scan objects in that grid for combination */
for (this_o_idx = c_ptr->o_idx; this_o_idx; this_o_idx = next_o_idx)
if (!in_bounds(my, mx) || (distance(my, mx, yy, xx) > WARNING_AWARE_RANGE)) continue;
- c_ptr = &cave[my][mx];
+ c_ptr = &grid_array[my][mx];
if (!c_ptr->m_idx) continue;
}
else old_damage = old_damage / 2;
- c_ptr = &cave[yy][xx];
+ c_ptr = &grid_array[yy][xx];
if (((!easy_disarm && is_trap(c_ptr->feat))
|| (c_ptr->mimic && is_trap(c_ptr->feat))) && !one_in_(13))
{