diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 13:48:35 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 13:48:35 +0200 |
commit | e9b334d7bf270682f83c5c18b2d85a25703c1a2d (patch) | |
tree | baa7ed00dedd2b09f99a2bb4958d2837ef6a8da6 /src/vehicles/Boat.cpp | |
parent | SetPosition, final part (diff) | |
download | re3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.tar re3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.tar.gz re3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.tar.bz2 re3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.tar.lz re3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.tar.xz re3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.tar.zst re3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Boat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Boat.cpp b/src/vehicles/Boat.cpp index 1f80c43e..348f2732 100644 --- a/src/vehicles/Boat.cpp +++ b/src/vehicles/Boat.cpp @@ -290,7 +290,7 @@ CBoat::ProcessControl(void) AddWakePoint(GetPosition()); float steerFactor = 1.0f - DotProduct(m_vecMoveSpeed, GetForward()); - if(m_modelIndex == MI_GHOST) + if (GetModelIndex() == MI_GHOST) steerFactor = 1.0f - DotProduct(m_vecMoveSpeed, GetForward())*0.3f; if(steerFactor < 0.0f) steerFactor = 0.0f; |