summaryrefslogtreecommitdiff
path: root/src/core/Camera.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-06-22 13:27:25 +0300
committerGitHub <noreply@github.com>2020-06-22 13:27:25 +0300
commit043f09f3fb08178eaea7e07da395dcb7b710249f (patch)
tree3b0cb6f663e297ac8cef52b8803408159d9a1e19 /src/core/Camera.cpp
parent98baa36f1a83362a67c46c2eb75539876b64b5b9 (diff)
parent7a71a47f743b1496c069cf5c4f2765877aea412b (diff)
Merge pull request #637 from Nick007J/master
script logging
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