diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-10-21 20:24:18 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-10-21 20:24:18 +0200 |
commit | ff2665942ecb2383588b304373aca9518f6332c1 (patch) | |
tree | 8f61d7f95fe231b57473f6f858ed58990e173e2f /src/core | |
parent | Cross-platform fix and a little style change (diff) | |
download | re3-ff2665942ecb2383588b304373aca9518f6332c1.tar re3-ff2665942ecb2383588b304373aca9518f6332c1.tar.gz re3-ff2665942ecb2383588b304373aca9518f6332c1.tar.bz2 re3-ff2665942ecb2383588b304373aca9518f6332c1.tar.lz re3-ff2665942ecb2383588b304373aca9518f6332c1.tar.xz re3-ff2665942ecb2383588b304373aca9518f6332c1.tar.zst re3-ff2665942ecb2383588b304373aca9518f6332c1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/TempColModels.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/core/TempColModels.cpp b/src/core/TempColModels.cpp index e12b48dd..203d24d0 100644 --- a/src/core/TempColModels.cpp +++ b/src/core/TempColModels.cpp @@ -22,7 +22,11 @@ CColModel CTempColModels::ms_colModelWeapon; CColSphere s_aPedSpheres[3]; CColSphere s_aPed2Spheres[3]; CColSphere s_aPedGSpheres[4]; +#ifdef FIX_BUGS +CColSphere s_aDoorSpheres[3]; +#else CColSphere s_aDoorSpheres[4]; +#endif CColSphere s_aBumperSpheres[4]; CColSphere s_aPanelSpheres[4]; CColSphere s_aBonnetSpheres[4]; @@ -130,7 +134,11 @@ CTempColModels::Initialise(void) s_aDoorSpheres[1].center = CVector(0.0f, -0.95f, -0.35f); s_aDoorSpheres[2].center = CVector(0.0f, -0.6f, 0.25f); +#ifdef FIX_BUGS for (i = 0; i < ARRAY_SIZE(s_aDoorSpheres); i++) { +#else + for (i = 0; i < ARRAY_SIZE(s_aPed2Spheres); i++) { +#endif s_aDoorSpheres[i].surface = SURFACE_CAR_PANEL; s_aDoorSpheres[i].piece = 0; } @@ -286,9 +294,13 @@ CTempColModels::Initialise(void) SET_COLMODEL_SPHERES(ms_colModelBodyPart2, s_aBodyPartSpheres2); - - ms_colModelWeapon.boundingSphere.Set(0.25f, CVector(0.0f, 0.0f, 0.0f)); - ms_colModelWeapon.boundingBox.Set(CVector(-0.25f, -0.25, -0.25f), CVector(0.25f, 0.25, 0.25f)); + ms_colModelWeapon.boundingSphere.radius = 0.25f; + ms_colModelWeapon.boundingBox.min.x = -0.25f; + ms_colModelWeapon.boundingBox.min.y = -0.25f; + ms_colModelWeapon.boundingBox.min.z = -0.25f; + ms_colModelWeapon.boundingBox.max.x = 0.25f; + ms_colModelWeapon.boundingBox.max.y = 0.25f; + ms_colModelWeapon.boundingBox.max.z = 0.25f; #undef SET_COLMODEL_SPHERES } |