]> git.mxchange.org Git - flightgear.git/commitdiff
Csaba HALASZ: don't treat every entry in a scenario file as model entry,
authormfranz <mfranz>
Mon, 2 Apr 2007 12:47:26 +0000 (12:47 +0000)
committermfranz <mfranz>
Mon, 2 Apr 2007 12:47:26 +0000 (12:47 +0000)
especially those called <description>. This was responsible for the aircraft
at --lon=0 --lat=0.

src/AIModel/AIManager.cxx

index c7643a22d7d5d465adae2de1563f7118a7dd2c5f..0351e83422a1261df5d7f2b375bc25765206ead2 100644 (file)
@@ -222,6 +222,8 @@ void FGAIManager::processScenario( const string &filename ) {
 
   for (int i = 0; i < scenarios->nChildren(); i++) { 
     SGPropertyNode* scEntry = scenarios->getChild(i);
+    if (strcmp(scEntry->getName(), "entry"))
+      continue;
     std::string type = scEntry->getStringValue("type", "aircraft");
 
     if (type == "aircraft") {