diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-10-18 18:16:37 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2020-10-18 18:16:37 +0200 |
commit | a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f (patch) | |
tree | dea344ffa5b7073b94b94a35dee13519fbc04b82 /src/render/WaterCannon.cpp | |
parent | Upload to bintray when creating tags (diff) | |
download | re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.gz re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.bz2 re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.lz re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.xz re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.tar.zst re3-a6aa782d6d5fa9a2165dafec5794a2e2cfbc653f.zip |
Diffstat (limited to 'src/render/WaterCannon.cpp')
-rw-r--r-- | src/render/WaterCannon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/WaterCannon.cpp b/src/render/WaterCannon.cpp index 2b34db37..f54b31b9 100644 --- a/src/render/WaterCannon.cpp +++ b/src/render/WaterCannon.cpp @@ -64,7 +64,7 @@ void CWaterCannon::Update_OncePerFrame(int16 index) if (CTimer::GetTimeInMilliseconds() > m_nTimeCreated + WATERCANNON_LIFETIME ) { - m_nCur = (m_nCur + 1) % -NUM_SEGMENTPOINTS; + m_nCur = (m_nCur + 1) % NUM_SEGMENTPOINTS; m_abUsed[m_nCur] = false; } @@ -124,7 +124,7 @@ void CWaterCannon::Render(void) RwIm3DVertexSetV(&WaterCannonVertices[2], v); RwIm3DVertexSetV(&WaterCannonVertices[3], v); - int16 pointA = m_nCur % -NUM_SEGMENTPOINTS; + int16 pointA = m_nCur % NUM_SEGMENTPOINTS; int16 pointB = pointA - 1; if ( (pointA - 1) < 0 ) |