From: Mathias Froehlich Date: Sun, 11 Dec 2011 21:19:11 +0000 (+0100) Subject: Correct scenery load path extension. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=057cbe7cc3bf3ec71e383e98082a63a90e8b0173;p=simgear.git Correct scenery load path extension. --- diff --git a/simgear/scene/tgdb/TileEntry.cxx b/simgear/scene/tgdb/TileEntry.cxx index a04b0164..a6c5575c 100644 --- a/simgear/scene/tgdb/TileEntry.cxx +++ b/simgear/scene/tgdb/TileEntry.cxx @@ -200,8 +200,12 @@ TileEntry::loadTileByFileName(const string& fileName, osgDB::FilePathList path_list=options->getDatabasePathList(); // Make sure we find the original filename here... std::string filePath = osgDB::getFilePath(fileName); - if (!filePath.empty()) - path_list.push_front(filePath); + if (!filePath.empty()) { + SGPath p(filePath); + p.append(".."); + p.append(".."); + path_list.push_front(p.str()); + } // scan and parse all files and store information for (unsigned int i = 0; i < path_list.size(); i++) {