mirror of
https://github.com/mrxenginner/reVC.git
synced 2026-10-11 09:48:15 +08:00
CParticleObject done, cDMAudio done
This commit is contained in:
1 parent
7ed494906a
commit
6093d855b0
17 files changed
+1927
-232
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user