summaryrefslogtreecommitdiffstats
path: root/src/render/WaterCannon.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2021-02-14 18:11:58 +0100
committerFire-Head <Fire-Head@users.noreply.github.com>2021-02-14 18:11:58 +0100
commit0681fe3ecab0d774bd6973b3df091567031898d5 (patch)
tree9ddff60bec09fa6c708cda836d408eb0623ea0f1 /src/render/WaterCannon.cpp
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-0681fe3ecab0d774bd6973b3df091567031898d5.tar
re3-0681fe3ecab0d774bd6973b3df091567031898d5.tar.gz
re3-0681fe3ecab0d774bd6973b3df091567031898d5.tar.bz2
re3-0681fe3ecab0d774bd6973b3df091567031898d5.tar.lz
re3-0681fe3ecab0d774bd6973b3df091567031898d5.tar.xz
re3-0681fe3ecab0d774bd6973b3df091567031898d5.tar.zst
re3-0681fe3ecab0d774bd6973b3df091567031898d5.zip
Diffstat (limited to 'src/render/WaterCannon.cpp')
-rw-r--r--src/render/WaterCannon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/WaterCannon.cpp b/src/render/WaterCannon.cpp
index da05a1ca..0f8b22a7 100644
--- a/src/render/WaterCannon.cpp
+++ b/src/render/WaterCannon.cpp
@@ -132,7 +132,7 @@ void CWaterCannon::Render(void)
int16 pointA = m_nCur % NUM_SEGMENTPOINTS;
int16 pointB = pointA - 1;
- if ( (pointA - 1) < 0 )
+ if ( pointB < 0 )
pointB += NUM_SEGMENTPOINTS;
bool bInit = false;