1
0
Fork 0

Fix Shuttle AI scenario

This commit is contained in:
Stuart Buchanan 2021-01-17 19:13:42 +00:00
parent d8114e89f0
commit 85f3183232
2 changed files with 1 additions and 4 deletions

View file

@ -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") {

View file

@ -34,7 +34,7 @@ using std::string;
FGAIStatic::FGAIStatic() : FGAIBase(otStatic, false) {
_searchOrder = PREFER_AI;
_searchOrder = DATA_ONLY;
}