diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2021-02-14 20:11:23 +0300 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2021-02-14 20:11:23 +0300 |
commit | 0b6e46b1e420e85a40caf1b2a91e050af51ae4b9 (patch) | |
tree | 289d3c5075ed863d75c2edda5be2dd1a745196c7 | |
parent | b2b243e80391f3caf956a8479049c9b57bbc44f9 (diff) |
cannon fix
-rw-r--r-- | src/render/WaterCannon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/WaterCannon.cpp b/src/render/WaterCannon.cpp index 5cc9d0b8..3aaa74be 100644 --- a/src/render/WaterCannon.cpp +++ b/src/render/WaterCannon.cpp @@ -127,7 +127,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; |