Fix CUnitVector3f non-match

This commit is contained in:
Luke Street 2022-10-03 00:56:11 -04:00
parent 87c0a6041c
commit 60c82b0a89
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
class CUnitVector3f : public CVector3f {
public:
CUnitVector3f(f32 x, f32 y, f32 z) : CVector3f(x, y, z) { Normalize(); }
CUnitVector3f(const CVector3f& vec) : CVector3f(vec) { Normalize(); }
CUnitVector3f(const CVector3f& vec);// : CVector3f(vec) { Normalize(); }
// TODO
};
CHECK_SIZEOF(CUnitVector3f, 0xc)

View File

@ -642,7 +642,7 @@ void CScriptSpecialFunction::ThinkIntroBossRingController(float dt, CStateManage
case kRS_Rotate: {
x1ac_ringRotateTarget =
CQuaternion::AxisAngle(
CVector3f(0.f, 0.f, 1.f),
CUnitVector3f(0.f, 0.f, 1.f),
CRelAngle::FromDegrees(xfc_float1 * (x1b8_ringReverse ? 1.f : -1.f) * dt))
.Transform(x1ac_ringRotateTarget);
bool allReachedTarget = true;