Skip to content

Commit

Permalink
cannon fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fire-Head committed Feb 14, 2021
1 parent b2b243e commit 0b6e46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/WaterCannon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b6e46b

Please sign in to comment.