summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Boat.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-15 16:44:47 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-15 16:44:47 +0200
commit655eaa36ce4dfbe3c8f7d46097d87d513a384b5f (patch)
treeaa16b934b8623fa16e0dcc149069a5e55115a345 /src/vehicles/Boat.cpp
parentFix vehicle cam. zoom values (diff)
parentmore cleanup (diff)
downloadre3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar
re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.gz
re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.bz2
re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.lz
re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.xz
re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.tar.zst
re3-655eaa36ce4dfbe3c8f7d46097d87d513a384b5f.zip
Diffstat (limited to 'src/vehicles/Boat.cpp')
-rw-r--r--src/vehicles/Boat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicles/Boat.cpp b/src/vehicles/Boat.cpp
index 2da58ed7..63abba20 100644
--- a/src/vehicles/Boat.cpp
+++ b/src/vehicles/Boat.cpp
@@ -920,6 +920,8 @@ CBoat::AddWakePoint(CVector point)
}
m_avec2dWakePoints[0] = point;
m_afWakePointLifeTime[0] = 400.0f;
+ if(m_nNumWakePoints < ARRAY_SIZE(m_afWakePointLifeTime))
+ m_nNumWakePoints++;
}
}else{
m_avec2dWakePoints[0] = point;