Browse Source

forest shadowvar cleanups

Azaezel 7 years ago
parent
commit
d810e6d208

+ 1 - 1
Engine/source/forest/forestCollision.cpp

@@ -151,7 +151,7 @@ void ForestConvex::getFeatures( const MatrixF &mat, const VectorF &n, ConvexFeat
    for (i = 0; i < numVerts; i++) 
    {
       cf->mVertexList.increment();
-      U32 index = emitString[currPos++];
+      index = emitString[currPos++];
       mat.mulP(pAccel->vertexList[index], &cf->mVertexList.last());
    }
 

+ 3 - 3
Engine/source/forest/forestWindEmitter.cpp

@@ -150,10 +150,10 @@ void ForestWind::processTick()
       mCurrentInterp = 0;
       mCurrentTarget.set( 0, 0 );
    
-      Point2F windDir( mDirection.x, mDirection.y );
-      windDir.normalizeSafe();
+      Point2F windNorm( mDirection.x, mDirection.y );
+	  windNorm.normalizeSafe();
 
-      mCurrentTarget = finalVec + windDir;
+      mCurrentTarget = finalVec + windNorm;
    }
    else
    {