mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 15:45:31 +00:00
Don't update ripples when they are not used
This commit is contained in:
parent
9809748eba
commit
0eb949c8a7
1 changed files with 3 additions and 2 deletions
|
@ -384,10 +384,11 @@ void Water::update(float dt, Ogre::Vector3 player)
|
||||||
|
|
||||||
void Water::frameStarted(float dt)
|
void Water::frameStarted(float dt)
|
||||||
{
|
{
|
||||||
mSimulation->update(dt, mPlayer);
|
|
||||||
|
|
||||||
if (mReflection)
|
if (mReflection)
|
||||||
|
{
|
||||||
|
mSimulation->update(dt, mPlayer);
|
||||||
mReflection->update();
|
mReflection->update();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Water::applyRTT()
|
void Water::applyRTT()
|
||||||
|
|
Loading…
Reference in a new issue