mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
fix a bug with water reflection plane height
This commit is contained in:
parent
b2d207130d
commit
789dfe1c88
@ -155,10 +155,10 @@ void Water::changeCell(const ESM::Cell* cell)
|
|||||||
{
|
{
|
||||||
mTop = cell->water;
|
mTop = cell->water;
|
||||||
|
|
||||||
|
setHeight(mTop);
|
||||||
|
|
||||||
if(!(cell->data.flags & cell->Interior))
|
if(!(cell->data.flags & cell->Interior))
|
||||||
mWaterNode->setPosition(getSceneNodeCoordinates(cell->data.gridX, cell->data.gridY));
|
mWaterNode->setPosition(getSceneNodeCoordinates(cell->data.gridX, cell->data.gridY));
|
||||||
else
|
|
||||||
setHeight(mTop);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Water::setHeight(const float height)
|
void Water::setHeight(const float height)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user