summaryrefslogtreecommitdiffstats
path: root/src/peds/PlayerPed.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-21 20:48:28 +0100
committeraap <aap@papnet.eu>2020-12-21 20:48:28 +0100
commit88b0134e72077b89c172fe857bf8a2735cb47cf3 (patch)
treea7282da87b98d33390991219bce4e18a671f83a2 /src/peds/PlayerPed.cpp
parentfix sizeof (diff)
downloadre3-88b0134e72077b89c172fe857bf8a2735cb47cf3.tar
re3-88b0134e72077b89c172fe857bf8a2735cb47cf3.tar.gz
re3-88b0134e72077b89c172fe857bf8a2735cb47cf3.tar.bz2
re3-88b0134e72077b89c172fe857bf8a2735cb47cf3.tar.lz
re3-88b0134e72077b89c172fe857bf8a2735cb47cf3.tar.xz
re3-88b0134e72077b89c172fe857bf8a2735cb47cf3.tar.zst
re3-88b0134e72077b89c172fe857bf8a2735cb47cf3.zip
Diffstat (limited to 'src/peds/PlayerPed.cpp')
-rw-r--r--src/peds/PlayerPed.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp
index 7d11f77e..c84ed4b4 100644
--- a/src/peds/PlayerPed.cpp
+++ b/src/peds/PlayerPed.cpp
@@ -1159,6 +1159,7 @@ 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()) {
@@ -1193,7 +1194,9 @@ CPlayerPed::ProcessAnimGroups(void)
else
groupToSet = ASSOCGRP_PLAYERBACK;
}
- } else {
+ } else
+#endif
+ {
if (GetWeapon()->m_eWeaponType == WEAPONTYPE_ROCKETLAUNCHER) {
groupToSet = ASSOCGRP_PLAYERROCKET;
} else {