mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 17:39:42 +00:00
Unload active cells when teleporting to another exterior worldspace
This commit is contained in:
parent
1ce35fa9e7
commit
690c752984
1 changed files with 1 additions and 1 deletions
|
@ -550,7 +550,7 @@ namespace MWWorld
|
|||
for (auto iter = mActiveCells.begin(); iter != mActiveCells.end();)
|
||||
{
|
||||
auto* cell = *iter++;
|
||||
if (cell->getCell()->isExterior())
|
||||
if (cell->getCell()->isExterior() && cell->getCell()->getWorldSpace() == playerCellIndex.mWorldspace)
|
||||
{
|
||||
const auto dx = std::abs(playerCellX - cell->getCell()->getGridX());
|
||||
const auto dy = std::abs(playerCellY - cell->getCell()->getGridY());
|
||||
|
|
Loading…
Reference in a new issue