Conversation
Report for SOUE01 (d3ce728 - 9e70ed0)Total functions: 76970 (-1) ✅ 3 new matches
📈 4 improvements in unmatched items
|
elijah-thomas774
left a comment
There was a problem hiding this comment.
Please Format files and remove unneeded headers (should be marked by clangd)
| u32 fn_302_210(); | ||
| virtual int actorExecute(); |
There was a problem hiding this comment.
| u32 fn_302_210(); | |
| virtual int actorExecute(); | |
| virtual int doDelete() override; | |
| virtual int draw() override; | |
| virtual int actorExecute() override; |
| u32 isWithinSphere(const mVec3_c& param) const; | ||
| u32 isWithinCylinder(const mVec3_c& param) const; | ||
| void updateBeetle(dAcBoomerang_c& boomerang); | ||
| u32 fn_302_3A0(); |
There was a problem hiding this comment.
fn_302_210 renamed to doDelete
fn_302_3A0 renamed to draw
if unsure, check the vtable assignment
| u32 fn_302_3A0(); |
| }; | ||
|
|
||
| private: | ||
| /* 0xFC */ mMtx_c matrix1; |
There was a problem hiding this comment.
| /* 0xFC */ mMtx_c matrix1; | |
| /* 0x0FC */ mMtx_c mMatrix1; |
| } | ||
| dAcObjBase_c::create(fProfile::CO_TEST, mRoomID, 0, &mPosition, &mRotation, &mScale, 0xFFFFFFFF); | ||
|
|
||
| return 0x2; |
There was a problem hiding this comment.
PACK_RESULT_e
| return 0x2; | |
| return FAILED; |
| } | ||
| } | ||
| matrixCreateFromPosRotYScale(matrix1, mPosition, mRotation.y, mScale, nullptr, 0); | ||
| return 0x1; |
There was a problem hiding this comment.
| return 0x1; | |
| return SUCCEEDED; |
| int dTgBeetle_c::actorExecute() { | ||
| if (mPastOnly == 1 && !mActorSubtype) { | ||
| if (dTimeAreaMgr_c::GetInstance()->checkPositionIsInPastState(mRoomID, mPosition, nullptr, 1.0f) == 0) { | ||
| return 1; |
There was a problem hiding this comment.
I think you get the point. the pre/do/post create/delete/execute/draw functions usually return this type
| return 1; | |
| return SUCCEEDED; |
| mScale.x = mScale.x * 0.01f; | ||
| mScale.y = mScale.y * 0.01f; | ||
| mScale.z = mScale.z * 0.01f; |
There was a problem hiding this comment.
| mScale.x = mScale.x * 0.01f; | |
| mScale.y = mScale.y * 0.01f; | |
| mScale.z = mScale.z * 0.01f; | |
| mScale *= 0.01f; |
| mZoneType = mParams & 0xF; | ||
| mZoneShape = (mParams >> 4) & 3; | ||
| mUnknown = mParams >> 6; | ||
| mBeetleFlag = mParams >> 0xE; | ||
| mPastOnly = (mParams >> 0x16) & 3; |
There was a problem hiding this comment.
use getFromParams
| } | ||
| } | ||
|
|
||
| if (!SceneflagManager::sInstance->checkBoolFlag(mRoomID & 0xFFFF, mBeetleFlag) || mActorSubtype) { |
There was a problem hiding this comment.
mask unneeded - was cause of regalloc
| if (!SceneflagManager::sInstance->checkBoolFlag(mRoomID & 0xFFFF, mBeetleFlag) || mActorSubtype) { | |
| if (!SceneflagManager::sInstance->checkBoolFlag(mRoomID, mBeetleFlag) || mActorSubtype) { |
| diff.y /= mScale.y; | ||
| diff.z /= mScale.z; | ||
|
|
||
| if (EGG::Math<float>::sqrt(diff.squareMagXZ()) <= 0.01f && diff.y <= 0.5f) { |
There was a problem hiding this comment.
| if (EGG::Math<float>::sqrt(diff.squareMagXZ()) <= 0.01f && diff.y <= 0.5f) { | |
| if (diff.absXZ() <= 1.0f && diff.y <= 0.5f) { |
elijah-thomas774
left a comment
There was a problem hiding this comment.
Porbably not meant to be with Beetle tag actor PR, but did some review anyways.
|
|
||
| bool temp = (mLinkage.mState == 1 && mLinkage.mType == 6); | ||
| if (temp) { | ||
| startSound(0x9f4); |
There was a problem hiding this comment.
look at d_snd_wzsound.h for sound enum
| bool temp = (mLinkage.mState == 1 && mLinkage.mType == 6); | ||
| if (temp) { |
There was a problem hiding this comment.
if (getLinkage().checkConnection(dLinkage_c::CONNECTION_6)
| if ((field_7ec & 1) && field_7d8->GetActor() != nullptr) { | ||
| temp = true; | ||
| } |
There was a problem hiding this comment.
this is probably one of the collision structures ChkXXHit() function
| void dAcPumpkin_c::initializeState_Wait() { | ||
|
|
||
| field_0x908 = 0; | ||
| mActorProperties = mActorProperties | 1; |
There was a problem hiding this comment.
when setting/unsetting mActorProperties, use the set/unsetActorProperty function and enum
| mVelocity.x = mVec3_c::Zero.x; | ||
| mVelocity.z = mVec3_c::Zero.z; | ||
| mVelocity.y = mVec3_c::Zero.y; |
There was a problem hiding this comment.
mVelocity = mVec3_c::Zero is probably fine here
| /* 0x3cc?*/ dBgS_AcchCir* field_0x3cc; | ||
| /* 0x40c?*/ u8 field_0x40c; | ||
| /* spacer*/ u8 spacer[1370]; | ||
| /* 0x744?*/ u8 field_0x744; | ||
| /* 0x7ec?*/ u8 field_7ec; | ||
| /* 0x7d8?*/ cCcD_GAtTgCoCommonBase* field_7d8; | ||
| /* 0x79C?*/ u32 pumpkinState;//?? | ||
| /* 0x8cc?*/ dFlowBase_c* something; | ||
| /* 0x870?*/ u32 field_0x870; | ||
| /* 0x908?*/ f32 field_0x908; | ||
| /* 0x90C?*/ f32 field_0x90C; | ||
| /* 0x914?*/ float field0x914[21]; | ||
| /* 0x9b8?*/ u32 field0x9b8; | ||
| /* 0x9db?*/ u8 field_0x9db; | ||
| /* 0x99c?*/ u8 field_99c; | ||
| /* 0xa14?*/ u8 field_a14; | ||
| /* 0xa15?*/ u8 field_a15; | ||
| /* 0xa16?*/ u8 field_a16; | ||
| /* 0xa17?*/ u8 field_a17; |
There was a problem hiding this comment.
usually uppercase for offset comments.
float -> f32
field_0x prefix
This reverts commit ca69176.
|
Oops pushed that pumpkin commit to the wrong branch. Thanks for the review though I'll definitely need it. I'll review your suggestions and finish beetle soon |
Functions match ~100% and rodata is 90%. There's a 00 00 00 00 at the beginning of the data that has no references. There is one unused (and unknown) class variable and type of zone that sets an unknown flag (0x80) in boomerang.