1
0
Fork 0

Vivian MEAZZA: check for carrier name and aircraft callsign without

creating them
This commit is contained in:
mfranz 2006-05-15 10:47:32 +00:00
parent 93f4180597
commit 95b6f8057a

View file

@ -129,10 +129,14 @@ TACAN::init ()
_y_shift_node = dnode->getChild("y-shift", 0, true);
_rotation_node = dnode->getChild("rotation", 0, true);
_channel_node = dnode->getChild("channel", 0, true);
SGPropertyNode *cnode = fgGetNode("/ai/models/carrier", num, true );
_carrier_name_node = cnode->getChild("name", 0, true);
SGPropertyNode *tnode = fgGetNode("/ai/models/aircraft", num, true );
_tanker_callsign_node = tnode->getChild("callsign", 0, true);
SGPropertyNode *cnode = fgGetNode("/ai/models/carrier", num, false );
if (cnode)
_carrier_name_node = cnode->getChild("name", 0, false);
SGPropertyNode *tnode = fgGetNode("/ai/models/aircraft", num, false);
if (tnode)
_tanker_callsign_node = tnode->getChild("callsign", 0, false);
}
void