summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-14 14:29:26 +0200
committeraap <aap@papnet.eu>2020-05-14 14:29:39 +0200
commitc21061a1998772ed9cde2e5f473966c5efd46cf4 (patch)
treea0fc52746e85a3ec765b694fb4efaac327ecd6dc /src/peds
parentfixed script error (diff)
downloadre3-c21061a1998772ed9cde2e5f473966c5efd46cf4.tar
re3-c21061a1998772ed9cde2e5f473966c5efd46cf4.tar.gz
re3-c21061a1998772ed9cde2e5f473966c5efd46cf4.tar.bz2
re3-c21061a1998772ed9cde2e5f473966c5efd46cf4.tar.lz
re3-c21061a1998772ed9cde2e5f473966c5efd46cf4.tar.xz
re3-c21061a1998772ed9cde2e5f473966c5efd46cf4.tar.zst
re3-c21061a1998772ed9cde2e5f473966c5efd46cf4.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/PedIK.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/PedIK.cpp b/src/peds/PedIK.cpp
index c9428cb3..ae9a85b4 100644
--- a/src/peds/PedIK.cpp
+++ b/src/peds/PedIK.cpp
@@ -64,8 +64,8 @@ CPedIK::RotateTorso(AnimBlendFrameData *node, LimbOrientation *limb, bool change
// We can't get the parent matrix of an hanim frame but
// this function is always called with PED_MID, so we know the parent frame.
// Trouble is that PED_MID is "Smid" on PS2/PC but BONE_torso on mobile/xbox...
- // so this doesn't exactly do what we'd like anyway
- RwMatrix *mat = GetComponentMatrix(m_ped, PED_MID);
+ // Assuming BONE_torso, the parent is BONE_mid, so let's use that:
+ RwMatrix *mat = GetBoneMatrix(m_ped, BONE_mid);
RwV3d vec1, vec2;
vec1.x = mat->right.z;