mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 15:11:33 +00:00
Cleanup(CSVRender::Cell:updateLand): Early exit when landscape should
not be loaded
This commit is contained in:
parent
78fd135764
commit
dd7a2f22d1
1 changed files with 25 additions and 24 deletions
|
@ -133,8 +133,10 @@ void CSVRender::Cell::updateLand()
|
|||
// Setup land if available
|
||||
const CSMWorld::IdCollection<CSMWorld::Land>& land = mData.getLand();
|
||||
int landIndex = land.searchId(mId);
|
||||
if (landIndex != -1 && !land.getRecord(mId).isDeleted())
|
||||
{
|
||||
|
||||
if (landIndex == -1 || land.getRecord(mId).isDeleted())
|
||||
return;
|
||||
|
||||
const ESM::Land& esmLand = land.getRecord(mId).get();
|
||||
|
||||
if (!esmLand.getLandData(ESM::Land::DATA_VHGT))
|
||||
|
@ -159,7 +161,6 @@ void CSVRender::Cell::updateLand()
|
|||
|
||||
mCellBorder->buildShape(esmLand);
|
||||
}
|
||||
}
|
||||
|
||||
void CSVRender::Cell::unloadLand()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue