mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-24 23:09:42 +00:00
fixed compilation
This commit is contained in:
parent
58f7a03626
commit
c5f044eb0d
1 changed files with 4 additions and 1 deletions
|
@ -112,9 +112,12 @@ namespace MWWorld
|
||||||
float worldsize = ESM::Land::REAL_SIZE;
|
float worldsize = ESM::Land::REAL_SIZE;
|
||||||
|
|
||||||
if (!(cell->cell->data.flags & ESM::Cell::Interior))
|
if (!(cell->cell->data.flags & ESM::Cell::Interior))
|
||||||
mPhysics->addHeightField (cell->land[1][1]->landData->heights,
|
{
|
||||||
|
ESM::Land* land = mWorld->getStore().lands.search(cell->cell->data.gridX,cell->cell->data.gridY);
|
||||||
|
mPhysics->addHeightField (land->landData->heights,
|
||||||
cell->cell->data.gridX, cell->cell->data.gridY,
|
cell->cell->data.gridX, cell->cell->data.gridY,
|
||||||
0, ( worldsize/(verts-1) ), verts);
|
0, ( worldsize/(verts-1) ), verts);
|
||||||
|
}
|
||||||
|
|
||||||
mRendering.configureAmbient(*cell);
|
mRendering.configureAmbient(*cell);
|
||||||
mRendering.requestMap(cell);
|
mRendering.requestMap(cell);
|
||||||
|
|
Loading…
Reference in a new issue