]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBallistic.cxx
Merge branch 'next' of D:\Git_New\flightgear into next
[flightgear.git] / src / AIModel / AIBallistic.cxx
index a0faf6eca02894ca8d72a7445ecd938424662dc1..16b15fe1d93f3aec36cb81a45ad6631c09a3398c 100644 (file)
@@ -152,11 +152,11 @@ bool FGAIBallistic::init(bool search_in_AI_path) {
         props->setStringValue("contents/path", _contents_path.c_str());
     }
 
-    if(_parent != ""){
-        setParentNode();
-    }
+    //if(_parent != ""){
+    //    setParentNode();
+    //}
 
-    setParentNodes(_selected_ac);
+    //setParentNodes(_selected_ac);
 
     //props->setStringValue("vector/path", _vector_path.c_str());
 
@@ -168,7 +168,11 @@ bool FGAIBallistic::init(bool search_in_AI_path) {
 
     Transform();
 
-    //cout << _name << " speed init: " << speed << endl;
+    if(_parent != ""){
+        setParentNode();
+    }
+
+    setParentNodes(_selected_ac);
 
     return true;
 }