| 208 | } |
| 209 | |
| 210 | static void add_building_to_all_zones(df::building* bld) |
| 211 | { |
| 212 | if (!is_suitable_building_for_zoning(bld)) |
| 213 | return; |
| 214 | |
| 215 | df::coord coord(bld->centerx, bld->centery, bld->z); |
| 216 | |
| 217 | std::vector<df::building_civzonest*> cv; |
| 218 | Buildings::findCivzonesAt(&cv, coord); |
| 219 | |
| 220 | for (auto zone : cv) |
| 221 | add_building_to_zone(bld, zone); |
| 222 | } |
| 223 | |
| 224 | static void add_zone_to_all_buildings(df::building* zone_as_building) |
| 225 | { |
no test coverage detected