diff options
Diffstat (limited to 'src/code/code_0x800A5AC0.c')
| -rw-r--r-- | src/code/code_0x800A5AC0.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/code_0x800A5AC0.c b/src/code/code_0x800A5AC0.c index 31b42d4d5..ae25f25b2 100644 --- a/src/code/code_0x800A5AC0.c +++ b/src/code/code_0x800A5AC0.c @@ -8,10 +8,10 @@ void EnAObj_Init(ActorEnAObj* this, GlobalContext* ctxt) { s0->base.textId = ((s0->base.params >> 8) & 0xFF) | 0x300; s0->base.params = (s0->base.params & 0xFF) - 9; Actor_ProcessInitChain((Actor*)s0, &enAObjInitVar); - Actor_SetDrawParams(&s0->base.shape, 0, (actor_shadow_draw_func)func_800B3FC0, 12); + Actor_SetDrawParams(&s0->base.shape, 0, (ActorShadowFunc)func_800B3FC0, 12); Collision_InitCylinder(ctxt, &s0->collision, (Actor*)s0, &enAObjCylinderInit); Collision_CylinderMoveToActor((Actor*)s0, &s0->collision); - s0->base.unkA0.mass = 255; + s0->base.colChkInfo.mass = 255; s0->update = (ActorFunc)EnAObj_Update1; } @@ -26,7 +26,7 @@ void EnAObj_Update1(ActorEnAObj* this, GlobalContext* ctxt) { if (func_800B84D0((Actor*)this, ctxt) != 0) { this->update = (ActorFunc)EnAObj_Update2; } else { - v0 = this->base.rotTowardsLinkY - this->base.shape.rot.y; + v0 = this->base.yawTowardsPlayer - this->base.shape.rot.y; v1 = (v0 < 0)? -v0 : v0; if ((v1 < 10240) || ((this->base.params == 1) && (v1 > 22528))) { func_800B863C((Actor*)this, ctxt); |
