summaryrefslogtreecommitdiffstats
path: root/src/modelinfo
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-03-02 01:38:41 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-03-02 01:38:41 +0100
commit97008905b6f51ce73121ebd99d0e34cf9489593b (patch)
treebf0c3338f780b9b60ca978024945f4dd5ff21aa8 /src/modelinfo
parentfix new renderer (diff)
downloadre3-97008905b6f51ce73121ebd99d0e34cf9489593b.tar
re3-97008905b6f51ce73121ebd99d0e34cf9489593b.tar.gz
re3-97008905b6f51ce73121ebd99d0e34cf9489593b.tar.bz2
re3-97008905b6f51ce73121ebd99d0e34cf9489593b.tar.lz
re3-97008905b6f51ce73121ebd99d0e34cf9489593b.tar.xz
re3-97008905b6f51ce73121ebd99d0e34cf9489593b.tar.zst
re3-97008905b6f51ce73121ebd99d0e34cf9489593b.zip
Diffstat (limited to 'src/modelinfo')
-rw-r--r--src/modelinfo/PedModelInfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modelinfo/PedModelInfo.cpp b/src/modelinfo/PedModelInfo.cpp
index 28de2507..25b260d3 100644
--- a/src/modelinfo/PedModelInfo.cpp
+++ b/src/modelinfo/PedModelInfo.cpp
@@ -86,6 +86,11 @@ 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);
@@ -95,6 +100,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;