summaryrefslogtreecommitdiffstats
path: root/src/core/Camera.cpp
diff options
context:
space:
mode:
authorFire_Head <Fire-Head@users.noreply.github.com>2019-10-27 04:36:58 +0100
committerGitHub <noreply@github.com>2019-10-27 04:36:58 +0100
commit6a46cc6c3b2aa7ee0a05260b671b29adb01167c7 (patch)
treed7a4b2ec22bcb6a9f6d8ef2602c7fdbac417d18b /src/core/Camera.cpp
parentSfxEnum (diff)
parentControllerConfig done (diff)
downloadre3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.tar
re3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.tar.gz
re3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.tar.bz2
re3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.tar.lz
re3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.tar.xz
re3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.tar.zst
re3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.zip
Diffstat (limited to '')
-rw-r--r--src/core/Camera.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp
index 20c2ebd0..3ab7d742 100644
--- a/src/core/Camera.cpp
+++ b/src/core/Camera.cpp
@@ -102,8 +102,8 @@ CCamera::IsBoxVisible(RwV3d *box, const CMatrix *mat)
int
CCamera::GetLookDirection(void)
{
- if(Cams[ActiveCam].Mode == CCam::MODE_CAMONASTRING ||
- Cams[ActiveCam].Mode == CCam::MODE_FIRSTPERSON ||
+ if(Cams[ActiveCam].Mode == CCam::MODE_CAM_ON_A_STRING ||
+ Cams[ActiveCam].Mode == CCam::MODE_1STPERSON ||
Cams[ActiveCam].Mode == CCam::MODE_BEHINDBOAT ||
Cams[ActiveCam].Mode == CCam::MODE_FOLLOWPED)
return Cams[ActiveCam].DirectionWasLooking;
@@ -113,7 +113,7 @@ CCamera::GetLookDirection(void)
bool
CCamera::GetLookingForwardFirstPerson()
{
- return Cams[ActiveCam].Mode == CCam::MODE_FIRSTPERSON &&
+ return Cams[ActiveCam].Mode == CCam::MODE_1STPERSON &&
Cams[ActiveCam].DirectionWasLooking == LOOKING_FORWARD;
}
@@ -1145,7 +1145,7 @@ CCam::FixCamIfObscured(CVector &TargetCoors, float TargetHeight, float TargetOri
if(Mode == MODE_BEHINDCAR)
Target.z += TargetHeight/2.0f;
- if(Mode == MODE_CAMONASTRING){
+ if(Mode == MODE_CAM_ON_A_STRING){
UseEntityPos = true;
Target.z += TargetHeight/2.0f;
EntityPos = CamTargetEntity->GetPosition();
@@ -1306,7 +1306,7 @@ CCam::Using3rdPersonMouseCam()
(Mode == MODE_FOLLOWPED ||
TheCamera.m_bPlayerIsInGarage &&
FindPlayerPed() && FindPlayerPed()->m_nPedState != PED_DRIVING &&
- Mode != MODE_TOPDOWN1 && this->CamTargetEntity == FindPlayerPed());
+ Mode != MODE_TOPDOWN && this->CamTargetEntity == FindPlayerPed());
}
bool