mirror of
https://github.com/halpz/re3.git
synced 2025-05-13 02:36:39 +03:00
CParticleObject done, cDMAudio done
This commit is contained in:
parent
7ed494906a
commit
6093d855b0
17 changed files with 1927 additions and 232 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue