diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-03-02 01:49:23 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:32:43 +0200 |
commit | 8ae485939827a331d9b9a3a06866e8c4e6d55db0 (patch) | |
tree | 272ac30729534305673f42fec3be8eab9089b5ad /src/modelinfo/PedModelInfo.cpp | |
parent | experiment: sorted building list for new renderer (diff) | |
download | re3-8ae485939827a331d9b9a3a06866e8c4e6d55db0.tar re3-8ae485939827a331d9b9a3a06866e8c4e6d55db0.tar.gz re3-8ae485939827a331d9b9a3a06866e8c4e6d55db0.tar.bz2 re3-8ae485939827a331d9b9a3a06866e8c4e6d55db0.tar.lz re3-8ae485939827a331d9b9a3a06866e8c4e6d55db0.tar.xz re3-8ae485939827a331d9b9a3a06866e8c4e6d55db0.tar.zst re3-8ae485939827a331d9b9a3a06866e8c4e6d55db0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/modelinfo/PedModelInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modelinfo/PedModelInfo.cpp b/src/modelinfo/PedModelInfo.cpp index d0816467..2cce48f4 100644 --- a/src/modelinfo/PedModelInfo.cpp +++ b/src/modelinfo/PedModelInfo.cpp @@ -317,6 +317,10 @@ CPedModelInfo::CreateHitColModelSkinned(RpClump *clump) for(int i = 0; i < NUMPEDINFONODES; i++){ *mat = *invmat; + // From LCS. Otherwise gives FPE +#ifdef FIX_BUGS + spheres[i].center = CVector(0.0f, 0.0f, 0.0f); +#else int id = ConvertPedNode2BoneTag(m_pColNodeInfos[i].pedNode); // this is wrong, wtf R* ??? int idx = RpHAnimIDGetIndex(hier, id); @@ -326,6 +330,7 @@ CPedModelInfo::CreateHitColModelSkinned(RpClump *clump) RwV3dTransformPoints(&pos, &pos, 1, mat); spheres[i].center = pos + CVector(m_pColNodeInfos[i].x, 0.0f, m_pColNodeInfos[i].z); +#endif spheres[i].radius = m_pColNodeInfos[i].radius; spheres[i].surface = SURFACE_PED; spheres[i].piece = m_pColNodeInfos[i].pieceType; |