summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-11 09:18:21 +0200
committeraap <aap@papnet.eu>2020-05-11 09:18:21 +0200
commitad90a06a395d6c93d4565705ee70c64a6cc820b8 (patch)
treee3cec5943fbf24a18d5ebddc31f2aba069b33e8e /src
parentRpAnimBlend and frame updates (diff)
downloadre3-ad90a06a395d6c93d4565705ee70c64a6cc820b8.tar
re3-ad90a06a395d6c93d4565705ee70c64a6cc820b8.tar.gz
re3-ad90a06a395d6c93d4565705ee70c64a6cc820b8.tar.bz2
re3-ad90a06a395d6c93d4565705ee70c64a6cc820b8.tar.lz
re3-ad90a06a395d6c93d4565705ee70c64a6cc820b8.tar.xz
re3-ad90a06a395d6c93d4565705ee70c64a6cc820b8.tar.zst
re3-ad90a06a395d6c93d4565705ee70c64a6cc820b8.zip
Diffstat (limited to '')
-rw-r--r--src/core/Cam.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp
index a8787675..e6a10267 100644
--- a/src/core/Cam.cpp
+++ b/src/core/Cam.cpp
@@ -4539,6 +4539,8 @@ CCam::Process_FollowPed_Rotation(const CVector &CameraTarget, float TargetOrient
Rotating = false;
}
+ 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;