if (is_solid_bold(y, x)) continue;
/* Accept this location */
- row1 = (POSITION)tmp_row;
- col1 = (POSITION)tmp_col;
+ row1 = tmp_row;
+ col1 = tmp_col;
/* Save the wall location */
if (dun->wall_n < WALL_MAX)
/* Save the door location */
if (dun->door_n < DOOR_MAX)
{
- dun->door[dun->door_n].y = (POSITION)y3;
- dun->door[dun->door_n].x = (POSITION)x3;
+ dun->door[dun->door_n].y = y3;
+ dun->door[dun->door_n].x = x3;
dun->door_n++;
}
else return FALSE;
else
{
/* tunnel through walls */
- if (build_tunnel2(x1, y1, (POSITION)x3, (POSITION)y3, type, cutoff))
+ if (build_tunnel2(x1, y1, x3, y3, type, cutoff))
{
- retval = build_tunnel2((POSITION)x3, (POSITION)y3, x2, y2, type, cutoff);
+ retval = build_tunnel2(x3, y3, x2, y2, type, cutoff);
firstsuccede = TRUE;
}
else