| 144 | } |
| 145 | |
| 146 | static void add_walls_to_burrow(color_ostream &out, df::burrow* b, |
| 147 | const df::coord & pos1, const df::coord & pos2) |
| 148 | { |
| 149 | for (int z = pos1.z; z <= pos2.z; z++) { |
| 150 | for (int y = pos1.y; y <= pos2.y; y++) { |
| 151 | for (int x = pos1.x; x <= pos2.x; x++) { |
| 152 | df::coord pos(x,y,z); |
| 153 | df::tiletype *tt = Maps::getTileType(pos); |
| 154 | if (tt && isWallTerrain(*tt)) |
| 155 | Burrows::setAssignedTile(b, pos, true); |
| 156 | } |
| 157 | } |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | static void expand_burrows(color_ostream &out, const df::coord & pos, df::tiletype prev_tt, df::tiletype tt) { |
| 162 | if (!isWalkable(tt) && tileShape(tt) != tiletype_shape::RAMP_TOP) |
no test coverage detected