mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 19:15:33 +00:00
Remove warning log messages as they are more suitable for OpenCS.
This commit is contained in:
parent
8244ba8957
commit
802a202455
1 changed files with 1 additions and 15 deletions
|
@ -873,35 +873,21 @@ namespace MWWorld
|
||||||
// A proper fix should be made for future versions of the file format.
|
// A proper fix should be made for future versions of the file format.
|
||||||
bool interior = pathgrid.mData.mX == 0 && pathgrid.mData.mY == 0 && mCells->search(pathgrid.mCell) != nullptr;
|
bool interior = pathgrid.mData.mX == 0 && pathgrid.mData.mY == 0 && mCells->search(pathgrid.mCell) != nullptr;
|
||||||
|
|
||||||
// deal with MODs that have empty pathgrid records (Issue #6209)
|
// deal with mods that have empty pathgrid records (Issue #6209)
|
||||||
// we assume that these records are empty on purpose (i.e. to remove old pathgrid on an updated cell)
|
// we assume that these records are empty on purpose (i.e. to remove old pathgrid on an updated cell)
|
||||||
if (pathgrid.mPoints.empty() || pathgrid.mEdges.empty())
|
if (pathgrid.mPoints.empty() || pathgrid.mEdges.empty())
|
||||||
{
|
{
|
||||||
std::string contentfile = esm.getContext().filename;
|
|
||||||
size_t pos = contentfile.find_last_of("/\\");
|
|
||||||
if (pos != std::string::npos)
|
|
||||||
contentfile = contentfile.substr(pos+1);
|
|
||||||
|
|
||||||
if (interior)
|
if (interior)
|
||||||
{
|
{
|
||||||
Interior::iterator it = mInt.find(pathgrid.mCell);
|
Interior::iterator it = mInt.find(pathgrid.mCell);
|
||||||
if (it != mInt.end())
|
if (it != mInt.end())
|
||||||
{
|
|
||||||
mInt.erase(it);
|
mInt.erase(it);
|
||||||
|
|
||||||
Log(Debug::Warning) << "Warning: Empty pathgrid overwriting cell '"
|
|
||||||
<< pathgrid.mCell << "' : " << contentfile;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Exterior::iterator it = mExt.find(std::make_pair(pathgrid.mData.mX, pathgrid.mData.mY));
|
Exterior::iterator it = mExt.find(std::make_pair(pathgrid.mData.mX, pathgrid.mData.mY));
|
||||||
if (it != mExt.end())
|
if (it != mExt.end())
|
||||||
{
|
|
||||||
mExt.erase(it);
|
mExt.erase(it);
|
||||||
Log(Debug::Warning) << "Warning: Empty pathgrid overwriting cell ("
|
|
||||||
<< pathgrid.mData.mX << ", " << pathgrid.mData.mY << ") : " << contentfile;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return RecordId("", isDeleted);
|
return RecordId("", isDeleted);
|
||||||
|
|
Loading…
Reference in a new issue