@@ -18,8 +18,8 @@ ARM Actor::Actor() {
1818 this ->mFlags = 0 ;
1919 this ->mUnk_84 = 0 ;
2020 this ->mUnk_5c .func_ov000_020975f8 ();
21- this ->mUnk_8c = 0 ;
22- this ->mUnk_90 = 0 ;
21+ this ->mRef . Reset () ;
22+ this ->mType = NULL ;
2323 data_ov000_020b539c.func_02028cdc (&this ->mUnk_5c , 0x30 );
2424 this ->mPrevPos = this ->mPos = this ->mUnk_5c .mUnk_00 ;
2525 this ->mAngle = this ->mUnk_5c .mUnk_0c ;
@@ -33,16 +33,16 @@ ARM Actor::Actor() {
3333ARM Actor::~Actor () {}
3434
3535// non-matching (equivalent)
36- ARM void Actor::func_ov000_0209848c (UnkStruct_ov000_020b539c_30 *param1) {
36+ ARM void Actor::func_ov000_0209848c (ActorType *param1) {
3737 s16 unk_1c;
38- unk32 *temp_r3;
38+ Cylinder *temp_r3;
3939
4040 unk_1c = param1->mUnk_1c ;
4141 temp_r3 = ¶m1->mUnk_04 ;
4242
43- this ->mUnk_90 = param1;
44- this ->mUnk_30 = (unk32 *) this ->mUnk_34 = temp_r3;
45- this ->mUnk_4e = unk_1c;
43+ this ->mType = param1;
44+ this ->mUnk_30 = this ->mUnk_34 = temp_r3;
45+ this ->mUnk_4e = unk_1c;
4646}
4747
4848ARM unk32 Actor::vfunc_18 (unk32 param1) {
@@ -97,15 +97,15 @@ ARM void Actor::func_ov000_0209853c(void) {
9797}
9898
9999ARM bool Actor::vfunc_04 () {
100- return this ->mUnk_90 ->mUnk_1e & 1 ;
100+ return this ->mType ->mUnk_1e & 1 ;
101101}
102102
103103ARM unk16 Actor::vfunc_08 () {
104- return this ->mUnk_90 ->mUnk_1a ;
104+ return this ->mType ->mUnk_1a ;
105105}
106106
107107ARM unk8 Actor::vfunc_0c () {
108- return this ->mUnk_90 ->mUnk_18 ;
108+ return this ->mType ->mUnk_18 ;
109109}
110110
111111// non-matching
@@ -115,11 +115,11 @@ ARM unk32 Actor::vfunc_38(unk32 param1) {
115115
116116 var_r3 = param1 >> 16 ;
117117
118- if (GET_FLAG (&this ->mFlags , ActorFlag_8 )) {
118+ if (GET_FLAG (&this ->mFlags , ActorFlag_Grabbed )) {
119119 return 0 ;
120120 }
121121
122- SET_FLAG (&this ->mFlags , ActorFlag_8 );
122+ SET_FLAG (&this ->mFlags , ActorFlag_Grabbed );
123123 stack_c = this ->mFlags ;
124124
125125 switch (stack_c) {
@@ -141,12 +141,12 @@ ARM unk32 Actor::vfunc_38(unk32 param1) {
141141
142142// non-matching
143143ARM bool Actor::vfunc_3c (unk32 param2, Vec3p *param3) {
144- if (!GET_FLAG (&this ->mFlags , ActorFlag_8 )) {
144+ if (!GET_FLAG (&this ->mFlags , ActorFlag_Grabbed )) {
145145 return false ;
146146 }
147147
148148 this ->mVel = *param3;
149- UNSET_FLAG (&this ->mFlags , ActorFlag_8 );
149+ UNSET_FLAG (&this ->mFlags , ActorFlag_Grabbed );
150150 return true ;
151151}
152152
0 commit comments