| 2696 | //======================================================================================= |
| 2697 | |
| 2698 | void merge_incursion_into_world_tile(embark_assist::defs::region_tile_datum* current, |
| 2699 | embark_assist::defs::region_tile_datum* target_tile, |
| 2700 | embark_assist::defs::mid_level_tile_incursion_base* target_mlt) { |
| 2701 | df::world_data* world_data = world->world_data; |
| 2702 | |
| 2703 | current->aquifer |= target_mlt->aquifer; |
| 2704 | current->neighboring_sand |= target_mlt->sand; |
| 2705 | current->neighboring_clay |= target_mlt->clay; |
| 2706 | if (current->min_region_soil > target_mlt->soil_depth) current->min_region_soil = target_mlt->soil_depth; |
| 2707 | if (current->max_region_soil < target_mlt->soil_depth) current->max_region_soil = target_mlt->soil_depth; |
| 2708 | current->neighboring_biomes[target_tile->biome[target_mlt->biome_offset]] = true; |
| 2709 | current->neighboring_region_types[world_data->regions[target_tile->biome_index[target_mlt->biome_offset]]->type] = true; |
| 2710 | } |
| 2711 | } |
| 2712 | } |
| 2713 | |