|
|
@ -168,7 +168,7 @@ std::string Cell::getDescription() const
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Cell::getNextRef(ESMReader &esm, CellRef &ref, bool& deleted)
|
|
|
|
bool Cell::getNextRef(ESMReader &esm, CellRef &ref, bool& deleted, bool ignoreMoves)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// TODO: Try and document reference numbering, I don't think this has been done anywhere else.
|
|
|
|
// TODO: Try and document reference numbering, I don't think this has been done anywhere else.
|
|
|
|
if (!esm.hasMoreSubs())
|
|
|
|
if (!esm.hasMoreSubs())
|
|
|
@ -176,11 +176,21 @@ bool Cell::getNextRef(ESMReader &esm, CellRef &ref, bool& deleted)
|
|
|
|
|
|
|
|
|
|
|
|
// NOTE: We should not need this check. It is a safety check until we have checked
|
|
|
|
// NOTE: We should not need this check. It is a safety check until we have checked
|
|
|
|
// more plugins, and how they treat these moved references.
|
|
|
|
// more plugins, and how they treat these moved references.
|
|
|
|
if (esm.isNextSub("MVRF")) {
|
|
|
|
if (esm.isNextSub("MVRF"))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (ignoreMoves)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MovedCellRef mref;
|
|
|
|
|
|
|
|
esm.getHT (mref.mRefNum.mIndex);
|
|
|
|
|
|
|
|
esm.getHNOT (mref.mTarget, "CNDT");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
// skip rest of cell record (moved references), they are handled elsewhere
|
|
|
|
// skip rest of cell record (moved references), they are handled elsewhere
|
|
|
|
esm.skipRecord(); // skip MVRF, CNDT
|
|
|
|
esm.skipRecord(); // skip MVRF, CNDT
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ref.load (esm);
|
|
|
|
ref.load (esm);
|
|
|
|
|
|
|
|
|
|
|
|