Merge pull request #1370 from eightyeight/fix-precipitation-hiding

Stop precipitation from processing ticks when it's hidden
This commit is contained in:
Areloch 2015-07-23 09:48:02 -05:00
commit adc9c9e8a4

View file

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