1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-04-01 08:06:45 +00:00

fix a bug with water reflection plane height

This commit is contained in:
scrawl 2012-05-21 09:50:02 +02:00
parent b2d207130d
commit 789dfe1c88

View file

@ -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)