* Note that this routine is only called on "even" squares - so it gives
* a natural checkerboard pattern.
*/
-static void create_cata_tunnel(POSITION x, POSITION y)
+static void create_cata_tunnel(floor_type *floor_ptr, POSITION x, POSITION y)
{
POSITION x1, y1;
/* Build tunnel */
x1 = x - 1;
y1 = y;
- set_tunnel(p_ptr->current_floor_ptr, &x1, &y1, FALSE);
+ set_tunnel(floor_ptr, &x1, &y1, FALSE);
x1 = x + 1;
y1 = y;
- set_tunnel(p_ptr->current_floor_ptr, &x1, &y1, FALSE);
+ set_tunnel(floor_ptr, &x1, &y1, FALSE);
x1 = x;
y1 = y - 1;
- set_tunnel(p_ptr->current_floor_ptr, &x1, &y1, FALSE);
+ set_tunnel(floor_ptr, &x1, &y1, FALSE);
x1 = x;
y1 = y + 1;
- set_tunnel(p_ptr->current_floor_ptr, &x1, &y1, FALSE);
+ set_tunnel(floor_ptr, &x1, &y1, FALSE);
}
}
if ((type == 3) && ((x + y) % 2))
{
- create_cata_tunnel(i, y1);
+ create_cata_tunnel(floor_ptr, i, y1);
}
}
}
}
if ((type == 3) && ((x + y) % 2))
{
- create_cata_tunnel(i, y1);
+ create_cata_tunnel(floor_ptr, i, y1);
}
}
}
if ((type == 3) && ((x + y) % 2))
{
- create_cata_tunnel(x2, i);
+ create_cata_tunnel(floor_ptr, x2, i);
}
}
}
}
if ((type == 3) && ((x + y) % 2))
{
- create_cata_tunnel(x2, i);
+ create_cata_tunnel(floor_ptr, x2, i);
}
}
}