mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
added searchExt function to cell RecList
This commit is contained in:
parent
de6e8b4cad
commit
d52e2f68cd
@ -194,6 +194,21 @@ namespace ESMS
|
|||||||
return it->second;
|
return it->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const Cell *searchExt (int x, int y) const
|
||||||
|
{
|
||||||
|
ExtCells::const_iterator it = extCells.find (x);
|
||||||
|
|
||||||
|
if (it==extCells.end())
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
ExtCellsCol::const_iterator it2 = it->second.find (y);
|
||||||
|
|
||||||
|
if (it2 == it->second.end())
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return it2->second;
|
||||||
|
}
|
||||||
|
|
||||||
void load(ESMReader &esm, const std::string &id)
|
void load(ESMReader &esm, const std::string &id)
|
||||||
{
|
{
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user