mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 08:18:59 +00:00
Fix FPE
This commit is contained in:
parent
c4f231deb4
commit
8ae4859398
1 changed files with 5 additions and 0 deletions
|
@ -317,6 +317,10 @@ CPedModelInfo::CreateHitColModelSkinned(RpClump *clump)
|
||||||
|
|
||||||
for(int i = 0; i < NUMPEDINFONODES; i++){
|
for(int i = 0; i < NUMPEDINFONODES; i++){
|
||||||
*mat = *invmat;
|
*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 id = ConvertPedNode2BoneTag(m_pColNodeInfos[i].pedNode); // this is wrong, wtf R* ???
|
||||||
int idx = RpHAnimIDGetIndex(hier, id);
|
int idx = RpHAnimIDGetIndex(hier, id);
|
||||||
|
|
||||||
|
@ -326,6 +330,7 @@ CPedModelInfo::CreateHitColModelSkinned(RpClump *clump)
|
||||||
RwV3dTransformPoints(&pos, &pos, 1, mat);
|
RwV3dTransformPoints(&pos, &pos, 1, mat);
|
||||||
|
|
||||||
spheres[i].center = pos + CVector(m_pColNodeInfos[i].x, 0.0f, m_pColNodeInfos[i].z);
|
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].radius = m_pColNodeInfos[i].radius;
|
||||||
spheres[i].surface = SURFACE_PED;
|
spheres[i].surface = SURFACE_PED;
|
||||||
spheres[i].piece = m_pColNodeInfos[i].pieceType;
|
spheres[i].piece = m_pColNodeInfos[i].pieceType;
|
||||||
|
|
Loading…
Reference in a new issue