diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-07-01 21:46:44 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-07-02 05:01:26 +0200 |
commit | 27838ae0b2a11d505d669fe4cad6d0372cb650e1 (patch) | |
tree | 477b9853bea245d9cbdaa8700e02ff980abe79d5 /src/entities/PedIK.cpp | |
parent | CPed fixes (diff) | |
download | re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.tar re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.tar.gz re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.tar.bz2 re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.tar.lz re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.tar.xz re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.tar.zst re3-27838ae0b2a11d505d669fe4cad6d0372cb650e1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/entities/PedIK.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/entities/PedIK.cpp b/src/entities/PedIK.cpp index 9d688ff9..fa773bbf 100644 --- a/src/entities/PedIK.cpp +++ b/src/entities/PedIK.cpp @@ -27,11 +27,11 @@ CPedIK::GetComponentPosition(RwV3d *pos, PedNode node) RwMatrix *mat; f = m_ped->GetNodeFrame(node); - mat = &f->modelling; + mat = RwFrameGetMatrix(f); *pos = mat->pos; for (f = RwFrameGetParent(f); f; f = RwFrameGetParent(f)) - RwV3dTransformPoints(pos, pos, 1, &f->modelling); + RwV3dTransformPoints(pos, pos, 1, RwFrameGetMatrix(f)); } RwMatrix* @@ -39,10 +39,10 @@ CPedIK::GetWorldMatrix(RwFrame *source, RwMatrix *destination) { RwFrame *i; - *destination = source->modelling; + *destination = *RwFrameGetMatrix(source); for (i = RwFrameGetParent(source); i; i = RwFrameGetParent(i)) - RwMatrixTransform(destination, &i->modelling, rwCOMBINEPOSTCONCAT); + RwMatrixTransform(destination, RwFrameGetMatrix(i), rwCOMBINEPOSTCONCAT); return destination; } |