X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fgroundradar.cxx;h=a142f4c22336325ca98f7b2aa4d8963b05e2fa31;hb=239a0007631da53c68ca9c8e7989957c567acac9;hp=b7d2834136d5f8b370b75ce8d11388aa2457426c;hpb=4994973ef4d5a079acf76267b525313c15376478;p=flightgear.git diff --git a/src/Cockpit/groundradar.cxx b/src/Cockpit/groundradar.cxx index b7d283413..a142f4c22 100644 --- a/src/Cockpit/groundradar.cxx +++ b/src/Cockpit/groundradar.cxx @@ -38,7 +38,7 @@ #include
#include #include -#include +#include #include #include #include @@ -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());