Remove unused value, formatting.
This commit is contained in:
parent
821af95e0d
commit
f7f7be77e5
1 changed files with 8 additions and 5 deletions
|
@ -423,17 +423,20 @@ void FGGlobals::append_aircraft_path(const std::string& path)
|
||||||
SG_LOG(SG_GENERAL, SG_ALERT, "aircraft path not found:" << path);
|
SG_LOG(SG_GENERAL, SG_ALERT, "aircraft path not found:" << path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SGPath acSubdir(dirPath);
|
SGPath acSubdir(dirPath);
|
||||||
acSubdir.append("Aircraft");
|
acSubdir.append("Aircraft");
|
||||||
if (acSubdir.exists()) {
|
if (acSubdir.exists()) {
|
||||||
SG_LOG(SG_GENERAL, SG_WARN, "Specified an aircraft-dir with an 'Aircraft' subdirectory:" << dirPath
|
SG_LOG(
|
||||||
<< ", will instead use child directory:" << acSubdir);
|
SG_GENERAL,
|
||||||
|
SG_WARN,
|
||||||
|
"Specified an aircraft-dir with an 'Aircraft' subdirectory:" << dirPath
|
||||||
|
<< ", will instead use child directory:" << acSubdir
|
||||||
|
);
|
||||||
dirPath = acSubdir;
|
dirPath = acSubdir;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string abspath = dirPath.realpath();
|
std::string abspath = dirPath.realpath();
|
||||||
unsigned int index = fg_aircraft_dirs.size();
|
|
||||||
fg_aircraft_dirs.push_back(abspath);
|
fg_aircraft_dirs.push_back(abspath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue