summaryrefslogtreecommitdiffstats
path: root/src/core/Cam.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-06-05 12:13:27 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-24 20:34:33 +0200
commitfad64667a7b0199786a6c031248ad726fdc9d22d (patch)
treeb669d06ed09dae469d6a6054d97d81835fda213e /src/core/Cam.cpp
parentFix sin & cos calls (diff)
downloadre3-fad64667a7b0199786a6c031248ad726fdc9d22d.tar
re3-fad64667a7b0199786a6c031248ad726fdc9d22d.tar.gz
re3-fad64667a7b0199786a6c031248ad726fdc9d22d.tar.bz2
re3-fad64667a7b0199786a6c031248ad726fdc9d22d.tar.lz
re3-fad64667a7b0199786a6c031248ad726fdc9d22d.tar.xz
re3-fad64667a7b0199786a6c031248ad726fdc9d22d.tar.zst
re3-fad64667a7b0199786a6c031248ad726fdc9d22d.zip
Diffstat (limited to 'src/core/Cam.cpp')
-rw-r--r--src/core/Cam.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp
index 448da46e..ad315029 100644
--- a/src/core/Cam.cpp
+++ b/src/core/Cam.cpp
@@ -5395,7 +5395,7 @@ CCam::Process_FollowCar_SA(const CVector& CameraTarget, float TargetOrientation,
float alphaToFace = Atan2(hi.z, hi.Magnitude2D()) + DEGTORAD(15.0f);
float neededAlphaTurn = alphaToFace - carGunUD;
- float alphaTurnPerFrame = CTimer::GetTimeStep() * 0.02f;
+ float alphaTurnPerFrame = CTimer::GetTimeStepInSeconds();
if (neededAlphaTurn > alphaTurnPerFrame) {
neededTurn = alphaTurnPerFrame;