Browse Source

alters projectile decal application so that it picks a random rotAroundNormal when adding it to a scene. (keeps em from always pointing north or up)

Azaezel 11 years ago
parent
commit
a33e500b8d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/T3D/projectile.cpp

+ 1 - 1
Engine/source/T3D/projectile.cpp

@@ -1011,7 +1011,7 @@ void Projectile::explode( const Point3F &p, const Point3F &n, const U32 collideT
 
       // Client (impact) decal.
       if ( mDataBlock->decal )     
-         gDecalManager->addDecal( p, n, 0.0f, mDataBlock->decal );
+         gDecalManager->addDecal(p, n, mRandF(0.0f, M_2PI_F), mDataBlock->decal);
 
       // Client object
       updateSound();