Improve CScriptSpiderBallAttractionSurface constructor

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-21 18:34:44 +03:00
parent 18ebd4146e
commit 83d4e0b613
No known key found for this signature in database
GPG Key ID: E224F951761145F8
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),
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() {}