From 501ea1c6545811a5c55faf7b86f997036dc0d2b2 Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Fri, 21 Oct 2022 18:34:44 +0300 Subject: [PATCH] Improve CScriptSpiderBallAttractionSurface constructor Former-commit-id: 83d4e0b61304b12bffef561890c22cec954aede9 --- .../ScriptObjects/CScriptSpiderBallAttractionSurface.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MetroidPrime/ScriptObjects/CScriptSpiderBallAttractionSurface.cpp b/src/MetroidPrime/ScriptObjects/CScriptSpiderBallAttractionSurface.cpp index c7b2fd1e..756b4265 100644 --- a/src/MetroidPrime/ScriptObjects/CScriptSpiderBallAttractionSurface.cpp +++ b/src/MetroidPrime/ScriptObjects/CScriptSpiderBallAttractionSurface.cpp @@ -8,7 +8,9 @@ CScriptSpiderBallAttractionSurface::CScriptSpiderBallAttractionSurface( : CActor(uid, active, name, info, xf, CModelData::CModelDataNull(), CMaterialList(kMT_NoStepLogic), CActorParameters::None(), kInvalidUniqueId) , xe8_scale(scale) -, xf4_aabb(CAABox(-(scale * 0.5f), scale * 0.5f).GetTransformedAABox(xf.GetRotation())) {} +, xf4_aabb(CAABox(-CVector3f(scale.GetX() * 0.5f, scale.GetY() * 0.5f, scale.GetZ() * 0.5f), + CVector3f(scale.GetX() * 0.5f, scale.GetY() * 0.5f, scale.GetZ() * 0.5f)) + .GetTransformedAABox(xf.GetRotation())) {} CScriptSpiderBallAttractionSurface::~CScriptSpiderBallAttractionSurface() {}