1
0
Fork 0

Clean up names in --show-aircraft; avoid -set.xml suffixes.

This commit is contained in:
James Turner 2010-07-22 01:36:32 +01:00
parent 8dd39e773e
commit bf52c378a4

View file

@ -1777,6 +1777,11 @@ private:
int maturity = 0;
string descStr(" ");
descStr += path.file();
// trim common suffix from file names
int nPos = descStr.rfind("-set.xml");
if (nPos == (int)(descStr.size() - 8)) {
descStr.resize(nPos);
}
SGPropertyNode *node = root.getNode("sim");
if (node) {