diff options
author | aap <aap@papnet.eu> | 2020-05-11 09:18:41 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-11 09:18:41 +0200 |
commit | b11715608f5d12d82ecb364b0d2dc76c24d6ab1f (patch) | |
tree | 89ee629dac2cee3c3ab7020e394a50f1054c186d /src/core | |
parent | Merge pull request #509 from Fire-Head/master (diff) | |
download | re3-b11715608f5d12d82ecb364b0d2dc76c24d6ab1f.tar re3-b11715608f5d12d82ecb364b0d2dc76c24d6ab1f.tar.gz re3-b11715608f5d12d82ecb364b0d2dc76c24d6ab1f.tar.bz2 re3-b11715608f5d12d82ecb364b0d2dc76c24d6ab1f.tar.lz re3-b11715608f5d12d82ecb364b0d2dc76c24d6ab1f.tar.xz re3-b11715608f5d12d82ecb364b0d2dc76c24d6ab1f.tar.zst re3-b11715608f5d12d82ecb364b0d2dc76c24d6ab1f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/Cam.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp index 20b262c8..21569647 100644 --- a/src/core/Cam.cpp +++ b/src/core/Cam.cpp @@ -4540,6 +4540,9 @@ CCam::Process_FollowPed_Rotation(const CVector &CameraTarget, float TargetOrient } + if(TheCamera.m_bUseTransitionBeta) + Beta = CGeneral::GetATanOfXY(-Cos(m_fTransitionBeta), -Sin(m_fTransitionBeta)); + Front = CVector(Cos(Alpha) * Cos(Beta), Cos(Alpha) * Sin(Beta), Sin(Alpha)); Source = TargetCoors - Front*CamDist; TargetCoors.z -= BaseOffset; // now get back to the real target coors again |