1
0
Fork 0

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:
curt 1999-06-12 14:13:01 +00:00
parent 898833174e
commit 1e606bc183
2 changed files with 10 additions and 7 deletions

View file

@ -135,9 +135,12 @@ bool FGClipper::load_polys(const string& path) {
}
int area = (int)poly_type;
if ( area == OceanArea ) {
// TEST - Ignore
} else if ( area < FG_MAX_AREA_TYPES ) {
// if ( area == OceanArea ) {
// TEST - Ignore
// } else
if ( area < FG_MAX_AREA_TYPES ) {
polys_in.polys[area].push_back(poly);
} else {
FG_LOG( FG_CLIPPER, FG_ALERT, "Polygon type out of range = "

View file

@ -47,10 +47,10 @@ enum AreaType {
StreamArea = 8,
CanalArea = 9,
GlacierArea = 10,
UrbanArea = 11,
MarshArea = 12,
DefaultArea = 13,
OceanArea = 14,
OceanArea = 11,
UrbanArea = 12,
MarshArea = 13,
DefaultArea = 14,
VoidArea = 9997,
NullArea = 9998,
UnknownArea = 9999