Tweaked the polygon type prioritization scheme just a bit.
Fixed a bug (dumb test idea) that was throwing away ocean areas.
This commit is contained in:
parent
898833174e
commit
1e606bc183
2 changed files with 10 additions and 7 deletions
|
@ -135,9 +135,12 @@ bool FGClipper::load_polys(const string& path) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int area = (int)poly_type;
|
int area = (int)poly_type;
|
||||||
if ( area == OceanArea ) {
|
|
||||||
// TEST - Ignore
|
// if ( area == OceanArea ) {
|
||||||
} else if ( area < FG_MAX_AREA_TYPES ) {
|
// TEST - Ignore
|
||||||
|
// } else
|
||||||
|
|
||||||
|
if ( area < FG_MAX_AREA_TYPES ) {
|
||||||
polys_in.polys[area].push_back(poly);
|
polys_in.polys[area].push_back(poly);
|
||||||
} else {
|
} else {
|
||||||
FG_LOG( FG_CLIPPER, FG_ALERT, "Polygon type out of range = "
|
FG_LOG( FG_CLIPPER, FG_ALERT, "Polygon type out of range = "
|
||||||
|
|
|
@ -47,10 +47,10 @@ enum AreaType {
|
||||||
StreamArea = 8,
|
StreamArea = 8,
|
||||||
CanalArea = 9,
|
CanalArea = 9,
|
||||||
GlacierArea = 10,
|
GlacierArea = 10,
|
||||||
UrbanArea = 11,
|
OceanArea = 11,
|
||||||
MarshArea = 12,
|
UrbanArea = 12,
|
||||||
DefaultArea = 13,
|
MarshArea = 13,
|
||||||
OceanArea = 14,
|
DefaultArea = 14,
|
||||||
VoidArea = 9997,
|
VoidArea = 9997,
|
||||||
NullArea = 9998,
|
NullArea = 9998,
|
||||||
UnknownArea = 9999
|
UnknownArea = 9999
|
||||||
|
|
Loading…
Add table
Reference in a new issue