1
0
Fork 0

Csaba HALASZ: don't treat every entry in a scenario file as model entry,

especially those called <description>. This was responsible for the aircraft
at --lon=0 --lat=0.
This commit is contained in:
mfranz 2007-04-02 12:47:26 +00:00
parent d9cbdb53ff
commit b361105202

View file

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