diff --git a/resources/theaters/caucasus/landmap.p b/resources/theaters/caucasus/landmap.p index 5b053f1d..1d77606e 100644 Binary files a/resources/theaters/caucasus/landmap.p and b/resources/theaters/caucasus/landmap.p differ diff --git a/resources/tools/cau_terrain.miz b/resources/tools/cau_terrain.miz index a0a53f08..f3a22e02 100644 Binary files a/resources/tools/cau_terrain.miz and b/resources/tools/cau_terrain.miz differ diff --git a/resources/tools/generate_landmap.py b/resources/tools/generate_landmap.py index 6fb52796..1fba12e7 100644 --- a/resources/tools/generate_landmap.py +++ b/resources/tools/generate_landmap.py @@ -52,17 +52,13 @@ def main() -> None: for plane_group in m.country("USA").plane_group: zone = [(x.position.x, x.position.y) for x in plane_group.points] - if terrain == "cau" and inclusion_zones: - # legacy - exclusion_zones.append(Polygon(zone)) + poly = Polygon(zone) + if not poly.is_valid: + raise RuntimeError(f"{plane_group} is invalid") + if plane_group.units[0].type == "F-15C": + exclusion_zones.append(poly) else: - poly = Polygon(zone) - if not poly.is_valid: - raise RuntimeError(f"{plane_group} is invalid") - if plane_group.units[0].type == "F-15C": - exclusion_zones.append(poly) - else: - inclusion_zones.append(poly) + inclusion_zones.append(poly) for ship_group in m.country("USA").ship_group: zone = [(x.position.x, x.position.y) for x in ship_group.points]