Merge commit 'refs/merge-requests/1551' of git://gitorious.org/fg/flightgear into stuartb/modelcallsign
This commit is contained in:
commit
52ac173257
1 changed files with 29 additions and 26 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue