forked from teamnwah/openmw-tes3coop
[Server] Compare new cells with loaded cells correctly
This commit is contained in:
parent
c9dc75f589
commit
45d081ba42
1 changed files with 2 additions and 2 deletions
|
@ -127,8 +127,8 @@ Cell *CellController::addCell(ESM::Cell cellData)
|
|||
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Loaded cells: %d", cells.size());
|
||||
auto it = find_if(cells.begin(), cells.end(), [cellData](const Cell *c) {
|
||||
//return c->cell.sRecordId == cellData.sRecordId; // Currently we cannot compare because plugin lists can be loaded in different order
|
||||
return c->cell.mData.mX == cellData.mData.mX && c->cell.mData.mY == cellData.mData.mY &&
|
||||
c->cell.mCellId.mWorldspace == cellData.mCellId.mWorldspace;
|
||||
return c->cell.isExterior() ? (c->cell.mData.mX == cellData.mData.mX && c->cell.mData.mY == cellData.mData.mY) :
|
||||
(c->cell.mName == cellData.mName);
|
||||
});
|
||||
Cell *cell;
|
||||
if (it == cells.end())
|
||||
|
|
Loading…
Reference in a new issue