2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-18 10:05:24 +00:00

Code cleanup

This commit is contained in:
2021-05-16 12:11:45 -07:00
parent e9b4cce6db
commit 128015baa6
7 changed files with 295 additions and 179 deletions

View File

@@ -113,8 +113,11 @@ zeus::CVector3f CCollisionActor::GetScanObjectIndicatorPosition(const CStateMana
scanScale = GetSphereRadius();
} else {
const zeus::CVector3f v = GetBoxSize();
float comp = (v.x() < v.y() ? v.y() : v.z());
comp = (comp < v.z() ? v.x() : comp);
float comp = v.x() >= v.y() ? v.z() : v.y();
if (comp < v.z()) {
comp = v.x();
}
scanScale = 0.5f * comp;
}