diff --git a/configure.py b/configure.py index 598a8ed04..20fb69cb2 100755 --- a/configure.py +++ b/configure.py @@ -1385,7 +1385,7 @@ config.libs = [ ActorRel(Matching, "d_a_demo_kmm"), ActorRel(Matching, "d_a_door10"), ActorRel(Matching, "d_a_dr"), - ActorRel(Equivalent, "d_a_dr2"), + ActorRel(MatchingFor("D44J01"), "d_a_dr2"), ActorRel(Matching, "d_a_ep"), ActorRel(MatchingFor("GZLJ01", "GZLE01", "GZLP01"), "d_a_floor"), ActorRel(Matching, "d_a_grass"), diff --git a/include/JSystem/JSupport/JSUList.h b/include/JSystem/JSupport/JSUList.h index bdc4d4209..f28f60828 100644 --- a/include/JSystem/JSupport/JSUList.h +++ b/include/JSystem/JSupport/JSUList.h @@ -36,13 +36,13 @@ class JSULink : public JSUPtrLink { public: JSULink(T* object) : JSUPtrLink((void*)object) {} - T* getObject() const { return (T*)getObjectPtr(); } + T* getObject() const { return (T*)mObject; } - JSUList* getSupervisor() const { return (JSUList*)this->getList(); } + JSUList* getSupervisor() const { return (JSUList*)mList; } - JSULink* getNext() const { return (JSULink*)this->JSUPtrLink::getNext(); } + JSULink* getNext() const { return (JSULink*)mNext; } - JSULink* getPrev() const { return (JSULink*)this->JSUPtrLink::getPrev(); } + JSULink* getPrev() const { return (JSULink*)mPrev; } }; // @@ -69,7 +69,7 @@ public: u32 getNumLinks() const { return mLength; } -private: +protected: JSUPtrLink* mHead; JSUPtrLink* mTail; u32 mLength; @@ -99,7 +99,7 @@ public: JSULink* getEnd() const { return NULL; } - u32 getNumLinks() const { return this->JSUPtrList::getNumLinks(); } + u32 getNumLinks() const { return mLength; } }; template diff --git a/include/d/actor/d_a_dr2.h b/include/d/actor/d_a_dr2.h index 20d230238..d51c92499 100644 --- a/include/d/actor/d_a_dr2.h +++ b/include/d/actor/d_a_dr2.h @@ -11,9 +11,6 @@ class mDoExt_brkAnm; class btd_class; struct iwa_hahen_s { - iwa_hahen_s() {} - ~iwa_hahen_s() {} - /* 0x00 */ J3DModel* mpModel; /* 0x04 */ bool unk_04; /* 0x08 */ cXyz unk_08; diff --git a/src/d/actor/d_a_dr2.cpp b/src/d/actor/d_a_dr2.cpp index c31367441..b885bf9ba 100644 --- a/src/d/actor/d_a_dr2.cpp +++ b/src/d/actor/d_a_dr2.cpp @@ -223,6 +223,7 @@ void hahen_move(dr2_class* i_this) { /* 00000884-0000130C .text iwa_move__FP9dr2_class */ void iwa_move(dr2_class* i_this) { + /* Nonmatching - retail-only regalloc */ fopAc_ac_c* a_this = &i_this->actor; cXyz sp58; cXyz sp4C; @@ -429,9 +430,7 @@ void iwa_move(dr2_class* i_this) { while (link != list->getEnd()) { JGeometry::TVec3 tvec; link->getObject()->getGlobalPosition(tvec); - sp40.x = tvec.x; - sp40.y = tvec.y; - sp40.z = tvec.z; + sp40 = tvec; dComIfGp_particle_setSimple(dPa_name::ID_SCENE_8062, &sp40, 0xB9); link = link->getNext(); }