summaryrefslogtreecommitdiffstats
path: root/src/render/WaterLevel.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-08-15 16:52:12 +0200
committereray orçunus <erayorcunus@gmail.com>2019-08-15 16:54:49 +0200
commit8f18f848363ba71ee74f13f88ac5a6c5da78b3ba (patch)
tree35bac433fe9a98acdaae40c62cb8753ce422aa54 /src/render/WaterLevel.cpp
parentAnimViewer! (diff)
parentMerge pull request #190 from Fire-Head/master (diff)
downloadre3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.tar
re3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.tar.gz
re3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.tar.bz2
re3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.tar.lz
re3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.tar.xz
re3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.tar.zst
re3-8f18f848363ba71ee74f13f88ac5a6c5da78b3ba.zip
Diffstat (limited to '')
-rw-r--r--src/render/WaterLevel.cpp6
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;