summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-01-31 12:57:00 +0100
committerGitHub <noreply@github.com>2020-01-31 12:57:00 +0100
commite1e76f510e798d45db98354b739eaf5c1c95576d (patch)
treefee9bcb43054041fee538979c98f789dcb5242f1 /src/core
parentRC toyz crashfix (diff)
parentCRemote (diff)
downloadre3-e1e76f510e798d45db98354b739eaf5c1c95576d.tar
re3-e1e76f510e798d45db98354b739eaf5c1c95576d.tar.gz
re3-e1e76f510e798d45db98354b739eaf5c1c95576d.tar.bz2
re3-e1e76f510e798d45db98354b739eaf5c1c95576d.tar.lz
re3-e1e76f510e798d45db98354b739eaf5c1c95576d.tar.xz
re3-e1e76f510e798d45db98354b739eaf5c1c95576d.tar.zst
re3-e1e76f510e798d45db98354b739eaf5c1c95576d.zip
Diffstat (limited to '')
-rw-r--r--src/core/AnimViewer.cpp2
-rw-r--r--src/core/Camera.h14
-rw-r--r--src/core/CutsceneMgr.cpp2
3 files changed, 16 insertions, 2 deletions
diff --git a/src/core/AnimViewer.cpp b/src/core/AnimViewer.cpp
index 86b22ec5..a2d7b94a 100644
--- a/src/core/AnimViewer.cpp
+++ b/src/core/AnimViewer.cpp
@@ -289,7 +289,7 @@ CAnimViewer::Update(void)
}
newEntity->GetPosition() = CVector(0.0f, 0.0f, 0.0f);
CWorld::Add(newEntity);
- TheCamera.TakeControl(pTarget, 9, 2, 1);
+ TheCamera.TakeControl(pTarget, CCam::MODE_MODELVIEW, JUMP_CUT, CAM_CONTROLLER_1);
}
if (pTarget->m_type == ENTITY_TYPE_VEHICLE || pTarget->m_type == ENTITY_TYPE_PED || pTarget->m_type == ENTITY_TYPE_OBJECT) {
((CPhysical*)pTarget)->m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.0f);
diff --git a/src/core/Camera.h b/src/core/Camera.h
index 8f0e62d4..99028de6 100644
--- a/src/core/Camera.h
+++ b/src/core/Camera.h
@@ -239,6 +239,20 @@ enum
MBLUR_UNUSED, // pinkish
};
+enum
+{
+ NONE = 0,
+ INTERPOLATION,
+ JUMP_CUT
+};
+
+enum
+{
+ CAM_CONTROLLER_0,
+ CAM_CONTROLLER_1,
+ CAM_CONTROLLER_2
+};
+
struct CCamera : public CPlaceable
{
bool m_bAboveGroundTrainNodesLoaded;
diff --git a/src/core/CutsceneMgr.cpp b/src/core/CutsceneMgr.cpp
index 2fbc5186..3df81b2b 100644
--- a/src/core/CutsceneMgr.cpp
+++ b/src/core/CutsceneMgr.cpp
@@ -256,7 +256,7 @@ void
CCutsceneMgr::SetupCutsceneToStart(void)
{
TheCamera.SetCamCutSceneOffSet(ms_cutsceneOffset);
- TheCamera.TakeControlWithSpline(2);
+ TheCamera.TakeControlWithSpline(JUMP_CUT);
TheCamera.SetWideScreenOn();
ms_cutsceneOffset.z++;