-
Notifications
You must be signed in to change notification settings - Fork 15
d_a_obj_rope_igaiga OK #286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Report for SOUE01 (df5bd1a - 3bbca85)📈 Matched code: 23.04% (+0.08%, +10628 bytes) ✅ 33 new matches
...and 3 more new matches |
include/d/col/c/c_cc_d.h
Outdated
| void OffCoSet() { | ||
| mCo.OffSPrm(1); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there should already be a ClrCoSet inline defined
|
|
||
| dCcD_SrcSph dAcOropeIgaiga_c::sSphSrc = { | ||
| /* mObjInf */ | ||
| {/* mObjAt */ {0x400, 0x1F, {0, 0, 0}, 1, 0, 0, 0, 0, 0}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Type Enum
| inline static void vecCylCalc(mVec3_c &target, const mAng &rot, f32 factor) { | ||
| target.x += factor * rot.sin(); | ||
| target.z += factor * rot.cos(); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add to issue comment for notice :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With #291 merged this can now be removed and the call replaced with a call to getCirclePoint from d/d_vec.h
| mRotationYOffset = rotationYOffset; | ||
| } | ||
| mLinkPosDiff = mPosition - dAcPy_c::GetLink()->getCenterTranslation(); | ||
| if (dAcPy_c::GetLink()->getCurrentAction() == 0x25 /* (IDL_ON_VINES|NO_STAMINA) */) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This action is not yet known. We know its vine related based on positioning in enum.
Action isnt a bitfield
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I knew it didn't make much sense but it's what ghidra showed so I added the comments in case it could help me understand the code (it didn't) and I forgot to remove them.
|
|
||
| #include "d/a/d_a_base.h" | ||
| #include "d/a/obj/d_a_obj_base.h" | ||
| #include "d/a/obj/d_a_obj_ivy_rope.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d_a_obj_ivy_rope can be removed from this header.
Instead forward delcare it since its used for a reference
| } else if (field_0x91E == 0) { | ||
| deleteRequest(); | ||
| } | ||
| if ((u16)(field_0x91E - 1) <= 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if ((u16)(field_0x91E - 1) <= 1) { | |
| if (field_0x91E > 0 && field_0x91E < 3) { |
This should work too
71eabb6 to
206079e
Compare
No description provided.