Improve CScriptSpiderBallAttractionSurface constructor

Former-commit-id: 83d4e0b613
This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-21 18:34:44 +03:00
parent cf20221c70
commit 501ea1c654
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,9 @@ CScriptSpiderBallAttractionSurface::CScriptSpiderBallAttractionSurface(
: CActor(uid, active, name, info, xf, CModelData::CModelDataNull(), CMaterialList(kMT_NoStepLogic), : CActor(uid, active, name, info, xf, CModelData::CModelDataNull(), CMaterialList(kMT_NoStepLogic),
CActorParameters::None(), kInvalidUniqueId) CActorParameters::None(), kInvalidUniqueId)
, xe8_scale(scale) , 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() {} CScriptSpiderBallAttractionSurface::~CScriptSpiderBallAttractionSurface() {}