mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-05 18:34:30 +00:00
Properly disable named exterior destination interior flag
This commit is contained in:
parent
00e6e855f1
commit
7cf74c570e
1 changed files with 8 additions and 3 deletions
|
|
@ -132,11 +132,16 @@ namespace MWGui
|
||||||
cellname = MWBase::Environment::get().getWorld()->getCellName(&cell);
|
cellname = MWBase::Environment::get().getWorld()->getCellName(&cell);
|
||||||
interior = false;
|
interior = false;
|
||||||
}
|
}
|
||||||
else if (worldModel.findCell(cellname, false) == nullptr)
|
else
|
||||||
|
{
|
||||||
|
const MWWorld::CellStore* destCell = worldModel.findCell(cellname, false);
|
||||||
|
if (destCell == nullptr)
|
||||||
{
|
{
|
||||||
Log(Debug::Error) << "Failed to add travel destination: unknown cell (" << cellname << ")";
|
Log(Debug::Error) << "Failed to add travel destination: unknown cell (" << cellname << ")";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
interior = !destCell->getCell()->isExterior();
|
||||||
|
}
|
||||||
addDestination(ESM::RefId::stringRefId(cellname), dest.mPos, interior);
|
addDestination(ESM::RefId::stringRefId(cellname), dest.mPos, interior);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue