CParticleObject done, cDMAudio done

This commit is contained in:
Fire-Head committed 2019-08-15 04:43:00 +03:00
1 parent 7ed494906a
commit 6093d855b0
17 files changed
+1927 -232

No files matched your search

+3 -3
View File
@@ -731,10 +731,10 @@ CWaterLevel::RenderWater()
float fAngle = CGeneral::GetRandomNumberInRange(90.0f, 150.0f);
int32 nSinCosIdx = CGeneral::GetRandomNumber() % CParticle::SIN_COS_TABLE_SIZE-1;
int32 nRot = CGeneral::GetRandomNumber() % CParticle::SIN_COS_TABLE_SIZE-1;
float fCos = CParticle::m_CosTable[nSinCosIdx];
float fSin = CParticle::m_SinTable[nSinCosIdx];
float fCos = CParticle::Cos(nRot);
float fSin = CParticle::Sin(nRot);
vecPos.x += (fCos - fSin) * fAngle;
vecPos.y += (fSin + fCos) * fAngle;