Skip to content

Commit

Permalink
adjust expected export target for ew WED features to 12.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
meikelm committed Jul 9, 2024
1 parent 6417695 commit 6a234b4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/WEDCore/README.WorldEditor
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ WED 2.6.0b3 7/5/24
Features:
- force default dir for most file open dialogs to be current scenery pack
- make ToolTips in LibraryList more meaningful
- support jw docking to the 2nd door of the aircraft for XP 12.1.2+
- support jw docking to the 2nd door of the aircraft for XP 12.1.3+
Bug fix:
- minor accuracy improvement in map projection for very large objetcs
- fix duplicated exclusion zones at full scenery import
Expand Down Expand Up @@ -48,7 +48,7 @@ WED 2.6.0b1 5/20/24
- auto-import when opening scenery packages w/o .xml file for 1st time
- option to recover from backup with broken .xml files
- XPD-15379 validate set_AGL, set_MSL within -1000 ... 10,000m, for GW +/-100m
- improved string spacing resolution for XP 12.1.2+
- improved string spacing resolution for XP 12.1.3+
Bug fix:
- fix Obj8 drawing not recognizing ATTR_no_blend threshold values
- validate ObjectString spacing parameter to be non-zero
Expand Down
2 changes: 1 addition & 1 deletion src/WEDCore/WED_Globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ enum WED_Export_Target {
wet_xplane_1100, // Adds ground vehicles stuff
wet_xplane_1130, // Adds 8.33kHz raster frequencies
wet_xplane_1200, // Adds moving jetwaya cabins, new surface types, new runway params, but NOT rowcode 105
wet_xplane_1211, // String spacing encoding of fractional meters, no new apt.dat revision
wet_xplane_1213, // String spacing encoding of fractional meters, no new apt.dat revision
wet_gateway = 99, // Latest format but with strict checking for gateway.
wet_latest_xplane = wet_xplane_1200, // meta-token for whatever the very newest x-plane export is
};
Expand Down
2 changes: 1 addition & 1 deletion src/WEDImportExport/WED_AptIE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static int get_apt_export_version()
version = 1130;
break;
case wet_xplane_1200:
case wet_xplane_1211:
case wet_xplane_1213:
version = 1200;
break;
default:
Expand Down
2 changes: 1 addition & 1 deletion src/WEDImportExport/WED_DSFExport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static unsigned int encode_heading(double h) // draped polygons have 1/128th

static unsigned int encode_spacing(double s) // object strings have 1/128th resolution encoded in integer spacing
{
if (gExportTarget >= wet_xplane_1211 && s < 433.8)
if (gExportTarget > wet_xplane_1200 && s < 433.8)
{
unsigned int nearest = round(s);
double ratio = nearest == 0 ? 0.0 : s / (double) nearest;
Expand Down

0 comments on commit 6a234b4

Please sign in to comment.