mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 14:19:41 +00:00
List exterior cell names in tab completion (Fixes #2252)
This commit is contained in:
parent
afc961d19c
commit
464f8abb3f
1 changed files with 12 additions and 0 deletions
|
@ -102,8 +102,20 @@ namespace MWGui
|
||||||
it->second->listIdentifier (mNames);
|
it->second->listIdentifier (mNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// exterior cell names aren't technically identifiers, but since the COC function accepts them,
|
||||||
|
// we should list them too
|
||||||
|
for (MWWorld::Store<ESM::Cell>::iterator it = store.get<ESM::Cell>().extBegin();
|
||||||
|
it != store.get<ESM::Cell>().extEnd(); ++it)
|
||||||
|
{
|
||||||
|
if (!it->mName.empty())
|
||||||
|
mNames.push_back(it->mName);
|
||||||
|
}
|
||||||
|
|
||||||
// sort
|
// sort
|
||||||
std::sort (mNames.begin(), mNames.end());
|
std::sort (mNames.begin(), mNames.end());
|
||||||
|
|
||||||
|
// remove duplicates
|
||||||
|
mNames.erase( std::unique( mNames.begin(), mNames.end() ), mNames.end() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue