Decomp fix for CTargetableProjectile::ResolveCollisionWithActor

This commit is contained in:
Henrique Gemignani Passos Lima 2022-11-11 04:25:18 +02:00
parent 82e6b04ced
commit 51eb95e499
No known key found for this signature in database
GPG Key ID: E224F951761145F8
1 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,9 @@ bool CTargetableProjectile::Explode(const zeus::CVector3f& pos, const zeus::CVec
}
void CTargetableProjectile::ResolveCollisionWithActor(const CRayCastResult& res, CActor& act, CStateManager& mgr) {
SetTransform(zeus::lookAt(GetTranslation(), GetAimPosition(mgr, 0.1f)));
zeus::CTransform xf = zeus::lookAt(GetTranslation(), GetAimPosition(mgr, 0.1f));
xf.origin = GetTranslation();
SetTransform(xf);
CEnergyProjectile::ResolveCollisionWithActor(res, act, mgr);
}