1
0
Fork 0

Merge commit 'refs/merge-requests/1551' of git://gitorious.org/fg/flightgear into stuartb/modelcallsign

This commit is contained in:
Frederic Bouvier 2010-08-21 14:54:08 +02:00
commit 52ac173257

View file

@ -895,10 +895,13 @@ void FGAIBallistic::report_impact(double elevation, const FGAIBase *object)
_impact_roll = roll;
SGPropertyNode *n = props->getNode("impact", true);
if (object)
if (object) {
n->setStringValue("type", object->getTypeString());
else
n->setStringValue("callsign", object->_callsign);
} else {
n->setStringValue("type", "terrain");
n->setStringValue("callsign", "");
}
n->setDoubleValue("longitude-deg", _impact_lon);
n->setDoubleValue("latitude-deg", _impact_lat);