CParticleObject done, cDMAudio done

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

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;