diff options
author | aap <aap@papnet.eu> | 2020-12-21 20:48:40 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-12-21 20:48:40 +0100 |
commit | 309a4613a49acb260c5422c376db2789af37d8ca (patch) | |
tree | 98b3d581df0b85471115fb67b557b09623ca8a04 /src/peds/PlayerPed.cpp | |
parent | fix sizeof (diff) | |
download | re3-309a4613a49acb260c5422c376db2789af37d8ca.tar re3-309a4613a49acb260c5422c376db2789af37d8ca.tar.gz re3-309a4613a49acb260c5422c376db2789af37d8ca.tar.bz2 re3-309a4613a49acb260c5422c376db2789af37d8ca.tar.lz re3-309a4613a49acb260c5422c376db2789af37d8ca.tar.xz re3-309a4613a49acb260c5422c376db2789af37d8ca.tar.zst re3-309a4613a49acb260c5422c376db2789af37d8ca.zip |
Diffstat (limited to 'src/peds/PlayerPed.cpp')
-rw-r--r-- | src/peds/PlayerPed.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp index 8a6adbeb..330d209b 100644 --- a/src/peds/PlayerPed.cpp +++ b/src/peds/PlayerPed.cpp @@ -929,6 +929,8 @@ void CPlayerPed::ProcessAnimGroups(void) { AssocGroupId groupToSet; + +#ifdef PC_PLAYER_CONTROLS if ((m_fWalkAngle <= -DEGTORAD(50.0f) || m_fWalkAngle >= DEGTORAD(50.0f)) && TheCamera.Cams[TheCamera.ActiveCam].Using3rdPersonMouseCam() && CanStrafeOrMouseControl()) { @@ -951,7 +953,9 @@ CPlayerPed::ProcessAnimGroups(void) else groupToSet = ASSOCGRP_PLAYERBACK; } - } else { + } else +#endif + { if (GetWeapon()->m_eWeaponType == WEAPONTYPE_ROCKETLAUNCHER) { groupToSet = ASSOCGRP_PLAYERROCKET; } else { |