mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-15 17:39:40 +00:00
[Client] Set correct worldspace for cell overrides in RecordHelper
This commit is contained in:
parent
02bca3f52d
commit
d113f81237
1 changed files with 2 additions and 0 deletions
|
@ -1511,6 +1511,7 @@ void RecordHelper::overrideCellRecord(const mwmp::CellRecord& record)
|
|||
if (record.baseId.empty())
|
||||
{
|
||||
recordData.mData.mFlags |= ESM::Cell::Flags::Interior;
|
||||
recordData.mCellId.mWorldspace = Misc::StringUtils::lowerCase(recordData.mName);
|
||||
|
||||
world->unloadCell(recordData);
|
||||
world->clearCellStore(recordData);
|
||||
|
@ -1521,6 +1522,7 @@ void RecordHelper::overrideCellRecord(const mwmp::CellRecord& record)
|
|||
const ESM::Cell *baseData = world->getStore().get<ESM::Cell>().search(record.baseId);
|
||||
ESM::Cell finalData = *baseData;
|
||||
finalData.mName = recordData.mName;
|
||||
finalData.mCellId.mWorldspace = Misc::StringUtils::lowerCase(recordData.mName);
|
||||
|
||||
world->unloadCell(finalData);
|
||||
world->clearCellStore(finalData);
|
||||
|
|
Loading…
Reference in a new issue