mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-16 16:20:53 +00:00
According to the comment, an interior cell must have (0,0) but as there is an exterior cell
with these coordinates it is not sufficient but it is necessary so I added it
This commit is contained in:
parent
d843ec321e
commit
ccaa581f39
@ -913,7 +913,7 @@ namespace MWWorld
|
||||
// mX and mY will be (0,0) for interior cells, but there is also an exterior cell with the coordinates of (0,0), so that doesn't help.
|
||||
// Check whether mCell is an interior cell. This isn't perfect, will break if a Region with the same name as an interior cell is created.
|
||||
// A proper fix should be made for future versions of the file format.
|
||||
bool interior = mCells->search(pathgrid.mCell) != nullptr;
|
||||
bool interior = pathgrid.mData.mX == 0 && pathgrid.mData.mY == 0 && mCells->search(pathgrid.mCell) != nullptr;
|
||||
|
||||
// Try to overwrite existing record
|
||||
if (interior)
|
||||
|
Loading…
x
Reference in New Issue
Block a user