mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-03 14:45:37 +00:00
fix a bug with water reflection plane height
This commit is contained in:
parent
b2d207130d
commit
789dfe1c88
1 changed files with 2 additions and 2 deletions
|
@ -155,10 +155,10 @@ void Water::changeCell(const ESM::Cell* cell)
|
|||
{
|
||||
mTop = cell->water;
|
||||
|
||||
setHeight(mTop);
|
||||
|
||||
if(!(cell->data.flags & cell->Interior))
|
||||
mWaterNode->setPosition(getSceneNodeCoordinates(cell->data.gridX, cell->data.gridY));
|
||||
else
|
||||
setHeight(mTop);
|
||||
}
|
||||
|
||||
void Water::setHeight(const float height)
|
||||
|
|
Loading…
Reference in a new issue