1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-08 09:37:53 +00:00

Merge branch 'oldtelvanniheart' into 'master'

Use correct exterior cell when positioning

See merge request OpenMW/openmw!2688
This commit is contained in:
psi29a 2023-02-06 19:46:00 +00:00
commit 91a4c09fa6

View File

@ -400,6 +400,11 @@ namespace MWScript
try
{
store = worldModel->getCell(cellID);
if (store->isExterior())
{
const osg::Vec2i cellIndex = MWWorld::positionToCellIndex(x, y);
store = worldModel->getExterior(cellIndex.x(), cellIndex.y());
}
}
catch (std::exception&)
{