Skip to content

Commit debf856

Browse files
committed
Update multiplayer_keysync.cpp
1 parent 3532acd commit debf856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/multiplayer_sa/multiplayer_keysync.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ void SwitchContext(CPed* thePed)
314314

315315
// Disable mouse look if they are not in a fight task and not aiming (strafing)
316316
// Fix GitHub Issue #395
317-
if (thePed->GetCurrentWeaponSlot() == eWeaponSlot::WEAPONSLOT_TYPE_UNARMED && thePed->GetPedIntelligence()->GetFightTask() && data->m_pad.NewState.RightShoulder1 != 0)
317+
if (thePed->GetCurrentWeaponSlot() == eWeaponSlot::WEAPONSLOT_TYPE_UNARMED && data->m_pad.NewState.RightShoulder1 != 0 && thePed->GetPedIntelligence()->GetFightTask())
318318
bDisableMouseLook = false;
319319

320320
// Disable mouse look if they're underwater (Ped vertical rotation when diving)

0 commit comments

Comments
 (0)