summaryrefslogtreecommitdiff
path: root/src/peds/PlayerPed.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-13 10:48:55 +0100
committeraap <aap@papnet.eu>2021-01-13 10:48:55 +0100
commitfb1bd1a5bd3ed6de91e4e86dd0ff9ae22d55dff6 (patch)
tree54d74b4bd9d944e4146c4df3e17cb05f645607a7 /src/peds/PlayerPed.cpp
parent4837969e09944c660b495dd92c9243b9c46f9e84 (diff)
fix !FREE_CAM build
Diffstat (limited to 'src/peds/PlayerPed.cpp')
-rw-r--r--src/peds/PlayerPed.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp
index b104f14c..a8e2e972 100644
--- a/src/peds/PlayerPed.cpp
+++ b/src/peds/PlayerPed.cpp
@@ -1136,7 +1136,7 @@ CPlayerPed::ProcessPlayerWeapon(CPad *padUsed)
#ifdef FREE_CAM
else if ((CCamera::bFreeCam && weaponInfo->m_eWeaponFire == WEAPON_FIRE_MELEE) || (weaponInfo->IsFlagSet(WEAPONFLAG_CANAIM) && !CCamera::m_bUseMouse3rdPerson)) {
#else
- else if (weaponInfo->m_bCanAim && !CCamera::m_bUseMouse3rdPerson) {
+ else if (weaponInfo->IsFlagSet(WEAPONFLAG_CANAIM) && !CCamera::m_bUseMouse3rdPerson) {
#endif
if (padUsed->TargetJustDown())
FindWeaponLockOnTarget();