mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 09:09:43 +00:00
Merge branch 'oldtelvanniheart' into 'master'
Use correct exterior cell when positioning See merge request OpenMW/openmw!2688
This commit is contained in:
commit
91a4c09fa6
1 changed files with 5 additions and 0 deletions
|
@ -400,6 +400,11 @@ namespace MWScript
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
store = worldModel->getCell(cellID);
|
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&)
|
catch (std::exception&)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue