X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fwxradar.cxx;h=968db833a4f32ee59ccf396a004075c3118a354a;hb=73fbc05a6b6af52825c792902d7738f9cad7ec2f;hp=d08a96812b82d37a50ae9cbe52393ebef6a35102;hpb=3cdd8fedf6f4b34aea038eb917e23b4f04005034;p=flightgear.git diff --git a/src/Instrumentation/wxradar.cxx b/src/Instrumentation/wxradar.cxx index d08a96812..968db833a 100644 --- a/src/Instrumentation/wxradar.cxx +++ b/src/Instrumentation/wxradar.cxx @@ -567,8 +567,12 @@ wxRadarBg::update_data(const SGPropertyNode *ac, double altitude, double heading callsign->setAlignment(osgText::Text::LEFT_BOTTOM_BASE_LINE); callsign->setLineSpacing(_font_spacing); + const char *identity = ac->getStringValue("transponder-id"); + if (!identity[0]) + identity = ac->getStringValue("callsign"); + stringstream text; - text << ac->getStringValue("callsign") << endl + text << identity << endl << setprecision(0) << fixed << setw(3) << setfill('0') << heading * SG_RADIANS_TO_DEGREES << "\xB0 " << setw(0) << altitude << "ft" << endl