summaryrefslogtreecommitdiffstats
path: root/src/core/Camera.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-06-22 12:27:25 +0200
committerGitHub <noreply@github.com>2020-06-22 12:27:25 +0200
commit043f09f3fb08178eaea7e07da395dcb7b710249f (patch)
tree3b0cb6f663e297ac8cef52b8803408159d9a1e19 /src/core/Camera.cpp
parentFOV fix (diff)
parentupdated player control names (diff)
downloadre3-043f09f3fb08178eaea7e07da395dcb7b710249f.tar
re3-043f09f3fb08178eaea7e07da395dcb7b710249f.tar.gz
re3-043f09f3fb08178eaea7e07da395dcb7b710249f.tar.bz2
re3-043f09f3fb08178eaea7e07da395dcb7b710249f.tar.lz
re3-043f09f3fb08178eaea7e07da395dcb7b710249f.tar.xz
re3-043f09f3fb08178eaea7e07da395dcb7b710249f.tar.zst
re3-043f09f3fb08178eaea7e07da395dcb7b710249f.zip
Diffstat (limited to 'src/core/Camera.cpp')
-rw-r--r--src/core/Camera.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp
index 785a9d12..cc463f07 100644
--- a/src/core/Camera.cpp
+++ b/src/core/Camera.cpp
@@ -781,7 +781,7 @@ CCamera::CamControl(void)
m_bFailedCullZoneTestPreviously = CCullZones::CamCloseInForPlayer();
if(m_bLookingAtPlayer){
- CPad::GetPad(0)->DisablePlayerControls &= ~PLAYERCONTROL_DISABLED_1;
+ CPad::GetPad(0)->SetEnablePlayerControls(PLAYERCONTROL_CAMERA);
FindPlayerPed()->bIsVisible = true;
}
@@ -1049,7 +1049,7 @@ CCamera::CamControl(void)
m_bFirstPersonBeingUsed = false;
if(m_bFirstPersonBeingUsed){
ReqMode = CCam::MODE_1STPERSON;
- CPad::GetPad(0)->DisablePlayerControls |= PLAYERCONTROL_DISABLED_1;
+ CPad::GetPad(0)->SetDisablePlayerControls(PLAYERCONTROL_CAMERA);
}
// Zoom value