1
0
Fork 0

wxradar: display transponder-id by default, fall back to callsign

This commit is contained in:
mfranz 2009-03-22 18:39:47 +00:00 committed by Tim Moore
parent de35bbe4ed
commit 16dd71a044

View file

@ -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