some J3D/misc cleanup (#2628)

* some j3d cleanup

* begin using uintptr_t

* j3dgraphbase cleanup

* j3dgraphanimator cleanup
This commit is contained in:
TakaRikka
2025-09-04 07:56:59 -07:00
committed by GitHub
parent ee8b843996
commit b45a089e15
290 changed files with 4221 additions and 3605 deletions
+3 -3
View File
@@ -715,7 +715,7 @@ static f32 dummy_literal() {
*/
void daNpcT_JntAnm_c::initialize() {
mActrMngr.initialize();
memset(&mAttnPos, 0, (u32)&field_0x158 - (u32)&mAttnPos);
memset(&mAttnPos, 0, (uintptr_t)&field_0x158 - (uintptr_t)&mAttnPos);
}
/* 80146CD8-80147858 141618 0B80+00 1/0 0/0 52/52 .text
@@ -1610,7 +1610,7 @@ void daNpcT_c::setMtx() {
mDoMtx_stack_c::scaleM(scale);
model->setBaseTRMtx(mDoMtx_stack_c::get());
model->setUserArea((u32)this);
model->setUserArea((uintptr_t)this);
mpMorf[0]->onMorfNone();
if (cM3d_IsZero(field_0xdfc) != FALSE) {
@@ -1986,7 +1986,7 @@ void daNpcT_c::evtChange() {
void daNpcT_c::clrParam() {
field_0xd7e = mCurAngle;
mCutType = 0;
memset(&mEvtNo, 0, (u32)&field_0xe38 - (u32)&mEvtNo);
memset(&mEvtNo, 0, (uintptr_t)&field_0xe38 - (uintptr_t)&mEvtNo);
mJntAnm.clrDirectFlag();
}