Skip to content

Commit

Permalink
upgrade polygonal forest exclusions to hard errors for GW targets
Browse files Browse the repository at this point in the history
  • Loading branch information
meikelm committed Jun 3, 2024
1 parent abce06a commit 29da8b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/WEDCore/README.WorldEditor
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ menu to view it online.

CHANGE HISTORY

WED 2.6.0b2
WED 2.6.0b2 6/3/24
Features:
- full scenery import menu function
- new export target 12.1.1 to distinuish string spacing behavior
Expand Down
3 changes: 2 additions & 1 deletion src/WEDCore/WED_Validate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,8 @@ static void ValidateDSFRecursive(WED_Thing * who, WED_LibraryMgr* lib_mgr, valid
set<int> ex;
xcl->GetExclusions(ex);
if (ex.count(exclude_For))
msgs.push_back(validation_error_t("Exclusion Polygons do not (yet) supported forests in X-Plane. Use Exclusion zones instead.", warn_exclusion_polys_no_forests, who, parent_apt));
msgs.push_back(validation_error_t("Exclusion Polygons do not (yet) supported forests in X-Plane. Use Exclusion zones instead.",
gExportTarget == wet_gateway ? err_exclusion_polys_no_forests : warn_exclusion_polys_no_forests, who, parent_apt));
}
else if(who->GetClass() == WED_ObjPlacement::sClass)
{
Expand Down
1 change: 1 addition & 0 deletions src/WEDCore/WED_Validate.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ enum validate_error_t
err_atcrwy_truck_route_too_close_to_runway,
err_duplicate_name,
err_exclusion_polys_no_holes,
err_exclusion_polys_no_forests,
err_flow_blank_ICAO_for_METAR,
err_flow_blank_name,
err_flow_flows_only_for_gte_xp10,
Expand Down

0 comments on commit 29da8b7

Please sign in to comment.