mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Unload active cells when teleporting to another exterior worldspace
This commit is contained in:
parent
1ce35fa9e7
commit
690c752984
@ -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…
x
Reference in New Issue
Block a user