Преглед на файлове

Stop precipitation from processing ticks when it's hidden.

Daniel Buckmaster преди 10 години
родител
ревизия
9217dfa4bd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Engine/source/T3D/fx/precipitation.cpp

+ 1 - 1
Engine/source/T3D/fx/precipitation.cpp

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