Skip to content

Commit

Permalink
bombf actorPostCreate matching
Browse files Browse the repository at this point in the history
  • Loading branch information
robojumper committed Oct 26, 2024
1 parent 78b5b90 commit 337874e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/SOUE01/symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17845,7 +17845,7 @@ YrotS__6mMtx_cFRC4mAng = .text:0x802F17C0; // type:function size:0xBC
YrotM__6mMtx_cFRC4mAng = .text:0x802F1880; // type:function size:0x4C
mMtx__ZrotS = .text:0x802F18D0; // type:function size:0xBC
ZrotM__6mMtx_cFRC4mAng = .text:0x802F1990; // type:function size:0x4C
mMtx__ZXYrotS = .text:0x802F19E0; // type:function size:0x60
ZXYrotS__6mMtx_cFRC4mAngRC4mAngRC4mAng = .text:0x802F19E0; // type:function size:0x60
mMtx__ZXYrotM = .text:0x802F1A40; // type:function size:0x60
mMtx__XYZrotS = .text:0x802F1AA0; // type:function size:0x60
mMtx__ZYXrotM = .text:0x802F1B00; // type:function size:0x60
Expand Down
5 changes: 2 additions & 3 deletions src/REL/d/a/d_a_bombf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ int dAcBombf_c::actorPostCreate() {
mVec3_c v4 = position - v * 10.0f;

if (dBgS_ObjLinChk::LineCross(&v3, &v4, this)) {
dBgS_ObjLinChk &chk = dBgS_ObjLinChk::GetInstance();
position = chk.GetLinEnd();
position = dBgS_ObjLinChk::GetInstance().GetLinEnd();
if (rotation.x == 0 && rotation.z == 0 && dBgS_ObjLinChk::ChkGround()) {
cM3dGPla pla;
dBgS::GetInstance()->GetTriPla(chk, &pla);
dBgS::GetInstance()->GetTriPla(dBgS_ObjLinChk::GetInstance(), &pla);
rotation.x = pla.GetAngle(rotation.y);
rotation.z = pla.GetAngle(rotation.y - 0x4000);
}
Expand Down

0 comments on commit 337874e

Please sign in to comment.