Stop precipitation from processing ticks when it's hidden.

This commit is contained in:
Daniel Buckmaster 2015-07-23 19:34:46 +10:00
parent 311d6bd81f
commit 9217dfa4bd

View file

@ -1293,7 +1293,7 @@ void Precipitation::interpolateTick(F32 delta)
void Precipitation::processTick(const Move *)
{
//nothing to do on the server
if (isServerObject() || mDataBlock == NULL)
if (isServerObject() || mDataBlock == NULL || isHidden())
return;
const U32 currTime = Platform::getVirtualMilliseconds();