diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-08-15 03:43:00 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2019-08-15 03:43:00 +0200 |
commit | 6093d855b067841ea4c51b14ece7544f57d76f2b (patch) | |
tree | 01c0f232a678e6afb9ef9b46ad97e47769d0c9bb /src/render/WaterLevel.cpp | |
parent | sampman cosmetic fix (diff) | |
download | re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.gz re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.bz2 re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.lz re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.xz re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.zst re3-6093d855b067841ea4c51b14ece7544f57d76f2b.zip |
Diffstat (limited to 'src/render/WaterLevel.cpp')
-rw-r--r-- | src/render/WaterLevel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp index 247b9f3d..48e8f83b 100644 --- a/src/render/WaterLevel.cpp +++ b/src/render/WaterLevel.cpp @@ -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; |