diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-06-05 12:13:27 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:45:48 +0200 |
commit | 776e8ff2eeb96a068383f5802e0d86f56b69c1f0 (patch) | |
tree | 4ce647151b3b9205cb7480416f175826a1aa97c4 /src/core/Cam.cpp | |
parent | Fix sin & cos calls (diff) | |
download | re3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.tar re3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.tar.gz re3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.tar.bz2 re3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.tar.lz re3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.tar.xz re3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.tar.zst re3-776e8ff2eeb96a068383f5802e0d86f56b69c1f0.zip |
Diffstat (limited to 'src/core/Cam.cpp')
-rw-r--r-- | src/core/Cam.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp index c741081f..56409af4 100644 --- a/src/core/Cam.cpp +++ b/src/core/Cam.cpp @@ -5399,7 +5399,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; |