mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:07:42 +00:00
CActorContraption fixes, better CMake dependency handling
This commit is contained in:
@@ -932,7 +932,7 @@ bool MovingSphereAABox(const zeus::CSphere& sphere, const zeus::CAABox& aabb, co
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
if (std::fabs(dir[i]) > FLT_EPSILON) {
|
||||
bool pointMax = pointFlags & (1 << i);
|
||||
if (pointMax != dir[i] > 0.f) {
|
||||
if (pointMax != (dir[i] > 0.f)) {
|
||||
++reverseCount;
|
||||
float d = 1.f / dir[i] * ((pointMax ? aabb.max[i] : aabb.min[i]) - sphere.position[i]);
|
||||
if (d < 0.f)
|
||||
|
||||
Reference in New Issue
Block a user