Fix Shuttle AI scenario
This commit is contained in:
parent
d8114e89f0
commit
85f3183232
2 changed files with 1 additions and 4 deletions
|
@ -252,9 +252,6 @@ void FGAIBase::readFromScenario(SGPropertyNode* scFileNode)
|
|||
setSMPath(submodels->getStringValue("path", ""));
|
||||
}
|
||||
|
||||
// By default, scenarios include the full path to any aircraft.
|
||||
_searchOrder = DATA_ONLY;
|
||||
|
||||
string searchOrder = scFileNode->getStringValue("search-order", "");
|
||||
if (!searchOrder.empty()) {
|
||||
if (searchOrder == "DATA_ONLY") {
|
||||
|
|
|
@ -34,7 +34,7 @@ using std::string;
|
|||
|
||||
|
||||
FGAIStatic::FGAIStatic() : FGAIBase(otStatic, false) {
|
||||
_searchOrder = PREFER_AI;
|
||||
_searchOrder = DATA_ONLY;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue