}
int area = (int)poly_type;
- 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 = "
}
}
- // finally, what ever is left over goes to base terrain
+ // finally, what ever is left over goes to ocean
// clip to accum against original base tile
remains = new gpc_polygon;
gpc_polygon_clip(GPC_DIFF, &polys_in.safety_base, &accum,
remains);
if ( remains->num_contours > 0 ) {
- polys_clipped.polys[0].push_back(remains);
+ polys_clipped.polys[(int)OceanArea].push_back(remains);
}
FILE *ofp;