last_rwy_heading = heading;
int surface_code = atoi( token[10].c_str() );
- SGGeod pos(SGGeod::fromDegFt(lon, lat, 0.0));
+ SGGeod pos(SGGeod::fromDegFt(lon, lat, last_apt_elev));
if (rwy_no[0] == 'x') {
// taxiway
displ_thresh2, stopway2, surface_code, true);
runways.push_back(reciprocal);
+
+ rwy->setReciprocalRunway(reciprocal);
+ reciprocal->setReciprocalRunway(rwy);
}
}
pos, heading_2, length, width,
displ_thresh2, stopway2, surface_code, true);
runways.push_back(reciprocal);
+
+ rwy->setReciprocalRunway(reciprocal);
+ reciprocal->setReciprocalRunway(rwy);
}
void parseWaterRunwayLine850(const vector<string>& token)
pos, heading_2, length, width,
0.0, 0.0, 13, true);
runways.push_back(reciprocal);
+
+ rwy->setReciprocalRunway(reciprocal);
+ reciprocal->setReciprocalRunway(rwy);
}
void parseHelipadLine850(const vector<string>& token)