X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fgroundradar.cxx;h=a142f4c22336325ca98f7b2aa4d8963b05e2fa31;hb=239a0007631da53c68ca9c8e7989957c567acac9;hp=7a2af9b62125ef2e19c5ae3dadd287afc72fae4a;hpb=1eb8ae1fbf43359eec09b99885a9280f529c86fb;p=flightgear.git diff --git a/src/Cockpit/groundradar.cxx b/src/Cockpit/groundradar.cxx index 7a2af9b62..a142f4c22 100644 --- a/src/Cockpit/groundradar.cxx +++ b/src/Cockpit/groundradar.cxx @@ -221,7 +221,7 @@ void GroundRadar::updateTexture() osg::ref_ptr taxi_vertices = new osg::Vec3Array; osg::ref_ptr pvt_vertices = new osg::Vec3Array; - const string airport_name = _airport_node->getStringValue(); + const std::string airport_name = _airport_node->getStringValue(); const FGAirport* airport = fgFindAirportID(airport_name); if (airport == 0) @@ -336,12 +336,10 @@ void GroundRadar::updateTexture() } pvt_geom->setVertexArray(pvt_vertices.get()); - for (unsigned int i=0; inumRunways(); ++i) + FGRunwayList rwys(apt->getRunwaysWithoutReciprocals()); + for (unsigned int i=0; igetRunwayByIndex(i)); - if (runway->isReciprocal()) continue; - - addRunwayVertices(runway, tower_lat, tower_lon, scale, rwy_vertices.get()); + addRunwayVertices(rwys[i], tower_lat, tower_lon, scale, rwy_vertices.get()); } osg::Geometry *rwy_geom = dynamic_cast(_geode->getDrawable(2)); rwy_geom->setVertexArray(rwy_vertices.get());