summaryrefslogtreecommitdiff
path: root/src/code/code_0x800A5AC0.c
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2021-05-21 11:24:47 +1000
committerGitHub <noreply@github.com>2021-05-20 21:24:47 -0400
commitf4687fbbe76b4699e7cfd8315fb83cd00b666e3a (patch)
tree63a8f3bfd7fbfd924a0db8c98693e0d9a42dd6b4 /src/code/code_0x800A5AC0.c
parent8c62c102cfb2506845635922a886b60bf8402b53 (diff)
General Cleanup (#155)
* minor fixes * Consolidate into globalCtx * fix error * Fix Warnings Co-authored-by: engineer124 <engineer124enginer124@gmail.com>
Diffstat (limited to 'src/code/code_0x800A5AC0.c')
-rw-r--r--src/code/code_0x800A5AC0.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/code/code_0x800A5AC0.c b/src/code/code_0x800A5AC0.c
index ddbbd50d7..848772c94 100644
--- a/src/code/code_0x800A5AC0.c
+++ b/src/code/code_0x800A5AC0.c
@@ -3,49 +3,49 @@
// This file is most likely z_en_a_obj.c
-void EnAObj_Init(ActorEnAObj* this, GlobalContext* ctxt) {
+void EnAObj_Init(ActorEnAObj* this, GlobalContext* globalCtx) {
ActorEnAObj* s0 = (ActorEnAObj*)this;
s0->base.textId = ((s0->base.params >> 8) & 0xFF) | 0x300;
s0->base.params = (s0->base.params & 0xFF) - 9;
Actor_ProcessInitChain((Actor*)s0, &enAObjInitVar);
ActorShape_Init(&s0->base.shape, 0, (ActorShadowFunc)func_800B3FC0, 12);
- Collider_InitAndSetCylinder(ctxt, &s0->collision, (Actor*)s0, &enAObjCylinderInit);
+ Collider_InitAndSetCylinder(globalCtx, &s0->collision, (Actor*)s0, &enAObjCylinderInit);
Collider_UpdateCylinder((Actor*)s0, &s0->collision);
s0->base.colChkInfo.mass = 255;
s0->update = (ActorFunc)EnAObj_Update1;
}
-void EnAObj_Destroy(ActorEnAObj* this, GlobalContext* ctxt) {
+void EnAObj_Destroy(ActorEnAObj* this, GlobalContext* globalCtx) {
ColliderCylinder* a2 = &this->collision;
- Collider_DestroyCylinder(ctxt, a2);
+ Collider_DestroyCylinder(globalCtx, a2);
}
-void EnAObj_Update1(ActorEnAObj* this, GlobalContext* ctxt) {
+void EnAObj_Update1(ActorEnAObj* this, GlobalContext* globalCtx) {
s16 v0;
s32 v1;
- if (func_800B84D0((Actor*)this, ctxt) != 0) {
+ if (func_800B84D0((Actor*)this, globalCtx) != 0) {
this->update = (ActorFunc)EnAObj_Update2;
} else {
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);
+ func_800B863C((Actor*)this, globalCtx);
}
}
}
-void EnAObj_Update2(ActorEnAObj* this, GlobalContext* ctxt) {
- if (func_800B867C((Actor*)this, ctxt) != 0) {
+void EnAObj_Update2(ActorEnAObj* this, GlobalContext* globalCtx) {
+ if (func_800B867C((Actor*)this, globalCtx) != 0) {
this->update = (ActorFunc)EnAObj_Update1;
}
}
-void EnAObj_Update(ActorEnAObj* this, GlobalContext* ctxt) {
- (this->update)((Actor*)this, (GlobalContext*)ctxt);
+void EnAObj_Update(ActorEnAObj* this, GlobalContext* globalCtx) {
+ (this->update)((Actor*)this, (GlobalContext*)globalCtx);
Actor_SetHeight((Actor*)this, 45.0f);
- CollisionCheck_SetOC(ctxt, &ctxt->colCheckCtx, (Collider*)&this->collision);
+ CollisionCheck_SetOC(globalCtx, &globalCtx->colCheckCtx, (Collider*)&this->collision);
}
-void EnAObj_Draw(ActorEnAObj* this, GlobalContext* ctxt) {
- func_800BDFC0(ctxt, enAObjDisplayLists[this->base.params]);
+void EnAObj_Draw(ActorEnAObj* this, GlobalContext* globalCtx) {
+ func_800BDFC0(globalCtx, enAObjDisplayLists[this->base.params]);
}