mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-15 15:30:56 -04:00
Use correct exterior cell when positioning
This commit is contained in:
parent
4032c447e9
commit
97c6d25d54
@ -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…
x
Reference in New Issue
Block a user